Class ComponentInstanceStore
java.lang.Object
de.fraunhofer.iese.mydata.internal.ComponentInstanceStore
- All Implemented Interfaces:
IComponentInstanceStore
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPipInstance(ComponentId componentId, IPolicyInformationPoint instance) Registers a PIP instance to the managervoidaddPxpInstance(ComponentId componentId, IPolicyExecutionPoint instance) Registers a PXP instance to the managervoidclear()Clear all references to the service instancesgetPipInstanceByComponentId(ComponentId componentId) Retrieve previously added PIP instancegetPxpInstanceByComponentId(ComponentId componentId) Retrieve previously added PXP instancevoidremovePipInstance(ComponentId componentId) Remove a specific instance from the managervoidremovePxpInstance(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:IComponentInstanceStoreRegisters a PIP instance to the manager- Specified by:
addPipInstancein 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:IComponentInstanceStoreRegisters a PXP instance to the manager- Specified by:
addPxpInstancein 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:IComponentInstanceStoreRemove a specific instance from the manager- Specified by:
removePipInstancein interfaceIComponentInstanceStore- Parameters:
componentId- the componentId, not null
-
removePxpInstance
Description copied from interface:IComponentInstanceStoreRemove a specific instance from the manager- Specified by:
removePxpInstancein interfaceIComponentInstanceStore- Parameters:
componentId- the componentId, not null
-
getPipInstanceByComponentId
Description copied from interface:IComponentInstanceStoreRetrieve previously added PIP instance- Specified by:
getPipInstanceByComponentIdin interfaceIComponentInstanceStore- Parameters:
componentId- the componentId, not null- Returns:
- the previously added PIP instance
-
getPxpInstanceByComponentId
Description copied from interface:IComponentInstanceStoreRetrieve previously added PXP instance- Specified by:
getPxpInstanceByComponentIdin interfaceIComponentInstanceStore- Parameters:
componentId- the componentId, not null- Returns:
- the previously added PXP instance
-
clear
public void clear()Description copied from interface:IComponentInstanceStoreClear all references to the service instances- Specified by:
clearin interfaceIComponentInstanceStore
-