All Packages Class Hierarchy This Package Previous Next Index
Class uhr.core.cell.PartDKHandler
java.lang.Object
|
+----uhr.core.cell.PartDKHandler
- public class PartDKHandler
- extends Object
- implements ServiceClient,
ServiceHost, UF_void_Flexitron_Container
This class handles a part's DK needs, notably by providing DK
to a newly created part on demand. It's a stateless service part.
-
READ_DK
- These constants are published to allows the NodeCreator to create
a proper PartDKHandler builder part.
-
PartDKHandler()
-
-
act(Flexitron,
Container)
- This uniface is redirected to
checkPartDK(...).
-
checkPartDK(Flexitron,
Container)
- Checks the partDef for PartDriven needs.
-
getServiceClientAide()
- Returns the aide handling the ServiceClient's attractor work.
-
getServiceHostAide()
- Returns the aide handling the ServiceHost's attractor work.
-
setServiceNeeded(ServiceNeed,
Object)
- Sets the service provided by a host and identifed by the serviceID.
READ_DK
public final ServiceNeed READ_DK
- These constants are published to allows the NodeCreator to create
a proper PartDKHandler builder part. Normally these constants are
unpublished.
PartDKHandler
public PartDKHandler()
getServiceClientAide
public ServiceClientAide getServiceClientAide()
- Returns the aide handling the ServiceClient's attractor work.
My ServiceNeeds are:
Type: uhr.uniface.UF_Flexitron_String
ServiceID: uhr.core.dk.ReadDKIntoFlexitron
- Returns:
- the aide.
setServiceNeeded
public void setServiceNeeded(ServiceNeed need,
Object service)
- Sets the service provided by a host and identifed by the serviceID.
- Parameters:
- need - the need that described the service.
- service - the attracted service.
getServiceHostAide
public ServiceHostAide getServiceHostAide()
- Returns the aide handling the ServiceHost's attractor work.
My ServiceItems are:
Type: uhr.uniface.UF_void_Flexitron_Container
ServiceID: uhr.core.dk.CheckPart
- Returns:
- the aide.
act
public void act(Flexitron partDef,
Container container)
- This uniface is redirected to
checkPartDK(...).
- Parameters:
- partDef - the part definition.
- container - the container the part is in.
checkPartDK
public void checkPartDK(Flexitron partDef,
Container container)
- Checks the partDef for PartDriven needs. If the part implements
ParamDriven then the part is provided its DK using the dk_ulr
in the partDef or a calculated default dk_url.
- Parameters:
- partDef - the standard container DJ part definition.
- container - the container the part is in.
- Throws: RuntimeException
- if inconsistency or dk not found.
All Packages Class Hierarchy This Package Previous Next Index