Class ComponentInstanceStore
java.lang.Object
de.fraunhofer.iese.mydata.internal.ComponentInstanceStore
- All Implemented Interfaces:
IComponentInstanceStore
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPipInstance
(ComponentId componentId, IPolicyInformationPoint instance) Registers a PIP instance to the managervoid
addPxpInstance
(ComponentId componentId, IPolicyExecutionPoint instance) Registers a PXP instance to the managervoid
clear()
Clear all references to the service instancesgetPipInstanceByComponentId
(ComponentId componentId) Retrieve previously added PIP instancegetPxpInstanceByComponentId
(ComponentId componentId) Retrieve previously added PXP instancevoid
removePipInstance
(ComponentId componentId) Remove a specific instance from the managervoid
removePxpInstance
(ComponentId componentId) Remove a specific instance from the manager
-
Constructor Details
-
ComponentInstanceStore
public ComponentInstanceStore()
-
-
Method Details
-
addPipInstance
public void addPipInstance(ComponentId componentId, IPolicyInformationPoint instance) throws InvalidEntityException, ConflictingResourceException Description copied from interface:IComponentInstanceStore
Registers a PIP instance to the manager- Specified by:
addPipInstance
in interfaceIComponentInstanceStore
- Parameters:
componentId
- the componentId, not nullinstance
- the instance, not null- Throws:
InvalidEntityException
- when providing an invalid componentIdConflictingResourceException
- when there already is an instance with that componentId
-
addPxpInstance
public void addPxpInstance(ComponentId componentId, IPolicyExecutionPoint instance) throws InvalidEntityException, ConflictingResourceException Description copied from interface:IComponentInstanceStore
Registers a PXP instance to the manager- Specified by:
addPxpInstance
in interfaceIComponentInstanceStore
- Parameters:
componentId
- the componentId, not nullinstance
- the instance, not null- Throws:
InvalidEntityException
- when providing an invalid componentIdConflictingResourceException
- when there already is an instance with that componentId
-
removePipInstance
Description copied from interface:IComponentInstanceStore
Remove a specific instance from the manager- Specified by:
removePipInstance
in interfaceIComponentInstanceStore
- Parameters:
componentId
- the componentId, not null
-
removePxpInstance
Description copied from interface:IComponentInstanceStore
Remove a specific instance from the manager- Specified by:
removePxpInstance
in interfaceIComponentInstanceStore
- Parameters:
componentId
- the componentId, not null
-
getPipInstanceByComponentId
Description copied from interface:IComponentInstanceStore
Retrieve previously added PIP instance- Specified by:
getPipInstanceByComponentId
in interfaceIComponentInstanceStore
- Parameters:
componentId
- the componentId, not null- Returns:
- the previously added PIP instance
-
getPxpInstanceByComponentId
Description copied from interface:IComponentInstanceStore
Retrieve previously added PXP instance- Specified by:
getPxpInstanceByComponentId
in interfaceIComponentInstanceStore
- Parameters:
componentId
- the componentId, not null- Returns:
- the previously added PXP instance
-
clear
public void clear()Description copied from interface:IComponentInstanceStore
Clear all references to the service instances- Specified by:
clear
in interfaceIComponentInstanceStore
-