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 Summary
Nested Classes Modifier and Type Class Description static class
ComponentRegistryAgent.ComponentInfo
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.protected java.util.Map<java.lang.String,java.lang.Object>
components
The registered components (future or iexternalaccess).protected java.util.Map<java.lang.String,ComponentRegistryAgent.ComponentInfo>
componenttypes
The registered component types (model name -> ComponentInfo).
-
Constructor Summary
Constructors Constructor Description ComponentRegistryAgent()
-
Method Summary
All 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
-
agent
protected IInternalAccess agent
The agent.
-
componenttypes
protected java.util.Map<java.lang.String,ComponentRegistryAgent.ComponentInfo> componenttypes
The registered component types (model name -> ComponentInfo).
-
components
protected java.util.Map<java.lang.String,java.lang.Object> components
The registered components (future or iexternalaccess).
-
-
Method Detail
-
agentCreated
public IFuture<java.lang.Void> agentCreated()
Called once after agent creation.
-
addComponentType
public IFuture<java.lang.Void> addComponentType(CreationInfo info)
Add a new component type and a strategy.- Specified by:
addComponentType
in interfaceIComponentRegistryService
- Parameters:
componentmodel
- The component model.
-
getComponent
protected IFuture<IExternalAccess> getComponent(CreationInfo info)
Get a component per creation info.
-
removeComponentType
public IFuture<java.lang.Void> removeComponentType(java.lang.String componentmodel)
Remove a new component type and a strategy.- Specified by:
removeComponentType
in interfaceIComponentRegistryService
- Parameters:
componentmodel
- The component model.
-
cleanupComponent
protected IFuture<java.lang.Void> cleanupComponent(IExternalAccess comp)
Remove service proxies from the registry component. Possibly kill the created delegation component.
-
-