Interface IComponentInstanceStore
- All Known Implementing Classes:
ComponentInstanceStore
public interface IComponentInstanceStore
Encapsulates the management of PIP/PXP instances that not necessarily have to implement the
IPolicyInformationPoint
or
IPolicyExecutionPoint
interfaces.-
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
-
Method Details
-
addPipInstance
void addPipInstance(ComponentId componentId, IPolicyInformationPoint instance) throws InvalidEntityException, ConflictingResourceException Registers a PIP instance to the manager- 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
void addPxpInstance(ComponentId componentId, IPolicyExecutionPoint instance) throws InvalidEntityException, ConflictingResourceException Registers a PXP instance to the manager- 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
Remove a specific instance from the manager- Parameters:
componentId
- the componentId, not null
-
removePxpInstance
Remove a specific instance from the manager- Parameters:
componentId
- the componentId, not null
-
getPipInstanceByComponentId
Retrieve previously added PIP instance- Parameters:
componentId
- the componentId, not null- Returns:
- the previously added PIP instance
-
getPxpInstanceByComponentId
Retrieve previously added PXP instance- Parameters:
componentId
- the componentId, not null- Returns:
- the previously added PXP instance
-
clear
void clear()Clear all references to the service instances
-