|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContext
An IoC container. This is the central part of the Signal Framework API. The container maintains a map of beans (named objects) instantiated by injecting the dependencies they declared in an external configuration source. This interface was originally coded to support Spring context instantiation on the Java ME platform. Is is, however, designed to be generic and not to depend on any J2ME or Spring APIs so that other types of contexts and runtime environments can be supported if needed. The container is mutable and new beans can therefore be registered after instantiation. All implementations of this interface are expected to be thread-safe.
Method Summary | |
---|---|
boolean |
containsBean(java.lang.String name)
Determines whether a bean with the specified name already exists. |
java.lang.Object |
getBean(java.lang.Class beanClass)
|
java.lang.Object |
getBean(java.lang.String name)
Retrieves a bean previously registered with the specified name. |
java.util.Vector |
getBeanNames(java.lang.Class beanClass)
Returns names of the beans of the specified type |
java.util.Vector |
getBeans(java.lang.Class beanClass)
|
IProxyFactory |
getProxyFactory()
|
void |
registerBean(java.lang.String name,
java.lang.Object object)
Registers a bean using the provided name. |
Method Detail |
---|
java.lang.Object getBean(java.lang.String name) throws ContextException
name
- name of a bean to be retrieved
ContextException
java.util.Vector getBeanNames(java.lang.Class beanClass) throws ContextException
beanClass
-
ContextException
java.util.Vector getBeans(java.lang.Class beanClass) throws ContextException
ContextException
java.lang.Object getBean(java.lang.Class beanClass) throws ContextException
ContextException
void registerBean(java.lang.String name, java.lang.Object object) throws ContextException
name
- a name of the bean being registeredobject
- a bean to be registered
ContextException
boolean containsBean(java.lang.String name)
name
- a name of a bean to be located in the context
IProxyFactory getProxyFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |