Class ComponentInstanceStore
- java.lang.Object
-
- de.fraunhofer.iese.mydata.internal.ComponentInstanceStore
-
- All Implemented Interfaces:
IComponentInstanceStore
public final class ComponentInstanceStore extends Object implements IComponentInstanceStore
- See Also:
IComponentInstanceStore
-
-
Constructor Summary
Constructors Constructor Description ComponentInstanceStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPipInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId, de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint instance)Registers a PIP instance to the managervoidaddPxpInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId, de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint instance)Registers a PXP instance to the managervoidclear()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 instancevoidremovePipInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId)Remove a specific instance from the managervoidremovePxpInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId)Remove a specific instance from the manager
-
-
-
Method Detail
-
addPipInstance
public 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.ConflictingResourceExceptionDescription 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:
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
public 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.ConflictingResourceExceptionDescription 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:
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
public void removePipInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId)
Description copied from interface:IComponentInstanceStoreRemove a specific instance from the manager- Specified by:
removePipInstancein interfaceIComponentInstanceStore- Parameters:
componentId- the componentId, not null
-
removePxpInstance
public void removePxpInstance(de.fraunhofer.iese.mydata.component.ComponentId componentId)
Description copied from interface:IComponentInstanceStoreRemove a specific instance from the manager- Specified by:
removePxpInstancein interfaceIComponentInstanceStore- Parameters:
componentId- the componentId, not null
-
getPipInstanceByComponentId
public Optional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyInformationPoint> getPipInstanceByComponentId(de.fraunhofer.iese.mydata.component.ComponentId componentId)
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
public Optional<de.fraunhofer.iese.mydata.component.interfaces.IPolicyExecutionPoint> getPxpInstanceByComponentId(de.fraunhofer.iese.mydata.component.ComponentId componentId)
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
-
-