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.


Variable Index

 o READ_DK
These constants are published to allows the NodeCreator to create a proper PartDKHandler builder part.

Constructor Index

 o PartDKHandler()

Method Index

 o act(Flexitron, Container)
This uniface is redirected to checkPartDK(...).
 o checkPartDK(Flexitron, Container)
Checks the partDef for PartDriven needs.
 o getServiceClientAide()
Returns the aide handling the ServiceClient's attractor work.
 o getServiceHostAide()
Returns the aide handling the ServiceHost's attractor work.
 o setServiceNeeded(ServiceNeed, Object)
Sets the service provided by a host and identifed by the serviceID.

Variables

 o 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.

Constructors

 o PartDKHandler
 public PartDKHandler()

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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