|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CreationContextStorage
This class defined all the main methods needed to be able to store and/or access to
a CreationalContext and its content
| Method Summary | ||
|---|---|---|
Set<String> |
getAllIds()
Gives all the Contextual ids that have been stored |
|
|
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 |
|
|
setInstance(String id,
CreationContext<T> creationContext)
Stores an instance for the given Contextual id |
|
| Method Detail |
|---|
String getId()
CreationContextStorage corresponding to the same context must
have the same id.
<T> T setInstance(String id,
CreationContext<T> creationContext)
Contextual id
id - the id of the contextual for which we want to set a valuecreationContext - the CreationContext used for the instance creationinstance - the value to set
<T> CreationContext<T> getCreationContext(String id)
CreationContext corresponding to the given Contextual id
id - the id of the contextual for which we want to retrieve the CreationContext
CreationalContext if it exists, null otherwisevoid removeInstance(String id)
Contextual id
id - the id of the contextual for which we want to remove the instanceSet<String> getAllIds()
Contextual ids that have been stored
Set containing all the ids that have been used to store a CreationContext
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||