Class ComponentRegistryAgent
- java.lang.Object
- 
- jadex.platform.service.componentregistry.ComponentRegistryAgent
 
- 
- All Implemented Interfaces:
- IComponentRegistryService
 
 public class ComponentRegistryAgent extends java.lang.Object implements IComponentRegistryService The component registry is a component for creating proxy services. Real services/components are created on demand on service call.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classComponentRegistryAgent.ComponentInfo
 - 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.util.Map<java.lang.String,java.lang.Object>componentsThe registered components (future or iexternalaccess).protected java.util.Map<java.lang.String,ComponentRegistryAgent.ComponentInfo>componenttypesThe registered component types (model name -> ComponentInfo).
 - 
Constructor SummaryConstructors Constructor Description ComponentRegistryAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>addComponentType(CreationInfo info)Add a new component type and a strategy.IFuture<java.lang.Void>agentCreated()Called once after agent creation.protected IFuture<java.lang.Void>cleanupComponent(IExternalAccess comp)Remove service proxies from the registry component.protected IFuture<IExternalAccess>getComponent(CreationInfo info)Get a component per creation info.IFuture<java.lang.Void>removeComponentType(java.lang.String componentmodel)Remove a new component type and a strategy.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
componenttypesprotected java.util.Map<java.lang.String,ComponentRegistryAgent.ComponentInfo> componenttypes The registered component types (model name -> ComponentInfo).
 - 
componentsprotected java.util.Map<java.lang.String,java.lang.Object> components The registered components (future or iexternalaccess).
 
- 
 - 
Method Detail- 
agentCreatedpublic IFuture<java.lang.Void> agentCreated() Called once after agent creation.
 - 
addComponentTypepublic IFuture<java.lang.Void> addComponentType(CreationInfo info) Add a new component type and a strategy.- Specified by:
- addComponentTypein interface- IComponentRegistryService
- Parameters:
- componentmodel- The component model.
 
 - 
getComponentprotected IFuture<IExternalAccess> getComponent(CreationInfo info) Get a component per creation info.
 - 
removeComponentTypepublic IFuture<java.lang.Void> removeComponentType(java.lang.String componentmodel) Remove a new component type and a strategy.- Specified by:
- removeComponentTypein interface- IComponentRegistryService
- Parameters:
- componentmodel- The component model.
 
 - 
cleanupComponentprotected IFuture<java.lang.Void> cleanupComponent(IExternalAccess comp) Remove service proxies from the registry component. Possibly kill the created delegation component.
 
- 
 
-