public interface CreationContextStorage
CreationalContext and its content| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllIds()
Gives all the
Contextual ids that have been stored |
<T> CreationContext<T> |
getCreationContext(String id)
Gives the
CreationContext corresponding to the given Contextual id |
String |
getId()
Gives the id of the storage.
|
void |
removeInstance(String id)
Removes from the storage the instance corresponding to the given
Contextual id |
<T> T |
setInstance(String id,
CreationContext<T> creationContext)
Stores an instance for the given
Contextual id |
String getId()
CreationContextStorage corresponding to the same context must
have the same id.<T> T setInstance(String id, CreationContext<T> creationContext)
Contextual idid - the id of the contextual for which we want to set a valuecreationContext - the CreationContext used for the instance creation<T> CreationContext<T> getCreationContext(String id)
CreationContext corresponding to the given Contextual idid - the id of the contextual for which we want to retrieve the CreationContextCreationalContext if it exists, null otherwisevoid removeInstance(String id)
Contextual idid - the id of the contextual for which we want to remove the instanceSet<String> getAllIds()
Contextual ids that have been storedSet containing all the ids that have been used to store a CreationContextCopyright © 2016 eXo Platform SAS. All Rights Reserved.