|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for an context configuration instance cache. Each context can store an a collection of service beans when they are depicted as singletons.
| Method Summary | |
void |
clear()
Clears the contents of the cache |
boolean |
contains(java.lang.String serviceId)
Returns a boolean if the service bean id is stored in the cache |
java.lang.Object |
getBean(java.lang.String serviceId)
Retrieves the service bean from the cache object by its name |
ContextConfig |
getContextConfig()
Gets the contextConfig |
java.lang.String[] |
getServiceBeanNames()
Retrieves a primitive array of service beans managed inside the cache by name |
void |
putBean(java.lang.String serviceId,
java.lang.Object bean)
Store the service bean in the cache by its name |
java.lang.Object |
removeBean(java.lang.String serviceId)
Removes the service bean from the cache object by its name |
int |
size()
Returns the current size of the cache |
| Method Detail |
public ContextConfig getContextConfig()
public void clear()
public int size()
public boolean contains(java.lang.String serviceId)
serviceId - the service bean name
true if the bean is returnedpublic java.lang.Object getBean(java.lang.String serviceId)
serviceId - the service bean name
null
public void putBean(java.lang.String serviceId,
java.lang.Object bean)
serviceId - the service bean namebean - the service beanpublic java.lang.Object removeBean(java.lang.String serviceId)
serviceId - the service bean name
nullpublic java.lang.String[] getServiceBeanNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||