Interface IComponentInstanceStore
-
- All Known Implementing Classes:
ComponentInstanceStore
public interface IComponentInstanceStore
Encapsulates the management of PIP/PXP instances that not necessarily have to implement theIPolicyInformationPoint
orIPolicyExecutionPoint
interfaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPipInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId, de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint instance)
Registers a PIP instance to the managervoid
addPxpInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId, de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint instance)
Registers a PXP instance to the managervoid
clear()
Clear all references to the service instancesOptional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint>
getPipInstanceByComponentId(de.fraunhofer.iese.mydata.component.ComponentId componentId)
Retrieve previously added PIP instanceOptional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint>
getPxpInstanceByComponentId(de.fraunhofer.iese.mydata.component.ComponentId componentId)
Retrieve previously added PXP instancevoid
removePipInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId)
Remove a specific instance from the managervoid
removePxpInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId)
Remove a specific instance from the manager
-
-
-
Method Detail
-
addPipInstance
void addPipInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId, de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint instance) throws de.fraunhofer.iese.mydata.exception.InvalidEntityException, de.fraunhofer.iese.mydata.exception.ConflictingResourceException
Registers a PIP instance to the manager- Parameters:
componentId
- the componentId, not nullinstance
- the instance, not null- Throws:
de.fraunhofer.iese.mydata.exception.InvalidEntityException
- when providing an invalid componentIdde.fraunhofer.iese.mydata.exception.ConflictingResourceException
- when there already is an instance with that componentId
-
addPxpInstance
void addPxpInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId, de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint instance) throws de.fraunhofer.iese.mydata.exception.InvalidEntityException, de.fraunhofer.iese.mydata.exception.ConflictingResourceException
Registers a PXP instance to the manager- Parameters:
componentId
- the componentId, not nullinstance
- the instance, not null- Throws:
de.fraunhofer.iese.mydata.exception.InvalidEntityException
- when providing an invalid componentIdde.fraunhofer.iese.mydata.exception.ConflictingResourceException
- when there already is an instance with that componentId
-
removePipInstance
void removePipInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId)
Remove a specific instance from the manager- Parameters:
componentId
- the componentId, not null
-
removePxpInstance
void removePxpInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId)
Remove a specific instance from the manager- Parameters:
componentId
- the componentId, not null
-
getPipInstanceByComponentId
Optional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint> getPipInstanceByComponentId(de.fraunhofer.iese.mydata.component.ComponentId componentId)
Retrieve previously added PIP instance- Parameters:
componentId
- the componentId, not null- Returns:
- the previously added PIP instance
-
getPxpInstanceByComponentId
Optional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint> getPxpInstanceByComponentId(de.fraunhofer.iese.mydata.component.ComponentId componentId)
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
-
-