All Packages Class Hierarchy This Package Previous Next Index
Class uhr.core.cell.PartRegistry
java.lang.Object
|
+----uhr.core.cell.PartRegistry
- public class PartRegistry
- extends Object
- implements ServiceHost,
UF_void_Flexitron,
NodeUser, PartUser
This class manages the cell part collection mutations. This
includes adding and removing parts. It excludes things associated
with parts such as dk.
-
PartRegistry()
-
-
act(Flexitron)
- This uniface is redirected to
appendPart(Flexitron).
-
appendPart(Flexitron)
- Creates and appends the part defined in partDef to this cell.
-
getPartNamesNeeded()
- Returns an array of the part names this part needs to
do its work.
-
getServiceHostAide()
- Returns the aide handling the ServiceHost's attractor work.
-
setMyNode(Node)
- Sets the node the part is in.
-
setPart(String,
Object)
- Sets a named part, in response to part needs.
PartRegistry
public PartRegistry()
getServiceHostAide
public ServiceHostAide getServiceHostAide()
- Returns the aide handling the ServiceHost's attractor work.
My ServiceItems are:
Type: uhr.uniface.UF_void_Flexitron
ServiceID: uhr.core.AppendPartWithPartDef
- Returns:
- the aide.
act
public void act(Flexitron partDef)
- This uniface is redirected to
appendPart(Flexitron).
- Parameters:
- partDef - the part definition data.
setMyNode
public void setMyNode(Node node)
- Sets the node the part is in.
getPartNamesNeeded
public String[] getPartNamesNeeded()
- Returns an array of the part names this part needs to
do its work. These are "core.NodeCreator".
- Returns:
- the names of the parts needed.
setPart
public void setPart(String name,
Object part)
- Sets a named part, in response to part needs. This implementation
supports needed part replacement anytime. See the PartUser
interface for further documentation.
- Parameters:
- name - the name of the needed part.
- part - the needed part.
appendPart
public void appendPart(Flexitron partDef)
- Creates and appends the part defined in partDef to this cell.
The Flexitron must contain data of this format example:
SecurityDataReader
uhr.parts.io.FileReader
Name and type are required. The name of the part must be unique
to this cell. The type must be the class name of the part.
- Parameters:
- partDef - the part definition data.
All Packages Class Hierarchy This Package Previous Next Index