Package org.openwms.tms.impl.targets
Class DefaultTargetResolvers.LocationTargetResolver
java.lang.Object
org.openwms.tms.impl.targets.DefaultTargetResolvers.LocationTargetResolver
- All Implemented Interfaces:
TargetResolver<org.openwms.common.location.api.LocationVO>
- Enclosing class:
DefaultTargetResolvers
@Component
static class DefaultTargetResolvers.LocationTargetResolver
extends Object
implements TargetResolver<org.openwms.common.location.api.LocationVO>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final TargetHandler
<org.openwms.common.location.api.LocationVO> private final org.openwms.common.location.api.LocationApi
-
Constructor Summary
ConstructorDescriptionLocationTargetResolver
(org.openwms.common.location.api.LocationApi locationApi, TargetHandler<org.openwms.common.location.api.LocationVO> handler) -
Method Summary
Modifier and TypeMethodDescriptionTargetHandler
<org.openwms.common.location.api.LocationVO> Get a handle reference to the handler instance that actually resolves the target.Optional
<org.openwms.common.location.api.LocationVO> Resolves aTargetVO
for a giventarget
.
-
Field Details
-
locationApi
private final org.openwms.common.location.api.LocationApi locationApi -
handler
-
-
Constructor Details
-
LocationTargetResolver
public LocationTargetResolver(org.openwms.common.location.api.LocationApi locationApi, TargetHandler<org.openwms.common.location.api.LocationVO> handler)
-
-
Method Details
-
resolve
Resolves aTargetVO
for a giventarget
.- Specified by:
resolve
in interfaceTargetResolver<org.openwms.common.location.api.LocationVO>
- Parameters:
target
- The target to resolve- Returns:
- The target instance
-
getHandler
Get a handle reference to the handler instance that actually resolves the target.- Specified by:
getHandler
in interfaceTargetResolver<org.openwms.common.location.api.LocationVO>
- Returns:
- The handler instance
-