|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An interface for a service object factory that knows about storing such beans inside namespaced contextes.
| Method Summary | |
boolean |
containsContext(java.lang.String contextName)
Return boolean value if a context is available or not |
boolean |
containsService(java.lang.String contextName,
java.lang.String serviceName)
Return boolean value if a particular named service in a context is available or not |
java.lang.String[] |
getContextNameList()
Retrieve the list of context available in the assembly by name. |
java.lang.Object |
getName(java.lang.String contextName,
java.lang.String beanName)
Retrieves the service bean implementation registered by name. |
java.lang.Object |
getName(java.lang.String contextName,
java.lang.String beanName,
java.lang.Class interfaceClass)
Retrieves the service bean implementation registered by name. |
java.lang.Object |
getService(java.lang.String contextName,
java.lang.Class interfaceClass)
Returns the service bean implementation for a registered interface class name |
java.lang.String[] |
getServiceNameList(java.lang.String contextName)
Retrieve the list of services by name available inside the named context in the assembly configuration. |
| Method Detail |
public java.lang.Object getName(java.lang.String contextName,
java.lang.String beanName)
contextName - the context identifierbeanName - the bean identifier
AssemblyFactoryException - - if the service cannot be instantiated, if it
reports an error, or cannot be syntactically created with violating
class encapsulation, or simply has not been defined at all.
public java.lang.Object getName(java.lang.String contextName,
java.lang.String beanName,
java.lang.Class interfaceClass)
contextName - the context identifierbeanName - the bean identifierinterfaceClass - the interface class the bean must implement
AssemblyFactoryException - - if the service cannot be instantiated, if it
reports an error, or cannot be syntactically created with violating
class encapsulation, or simply has not been defined at all.
public java.lang.Object getService(java.lang.String contextName,
java.lang.Class interfaceClass)
contextName - the context nameinterfaceClass - the interface class the bean must implement
AssemblyFactoryException - - if the service cannot be instantiated, if it
reports an error, or cannot be syntactically created with violating
class encapsulation, or simply has not been defined at all.public boolean containsContext(java.lang.String contextName)
contextName - the context name
true if the named context is availablepublic java.lang.String[] getContextNameList()
public boolean containsService(java.lang.String contextName,
java.lang.String serviceName)
contextName - the context nameserviceName - the servie bean name
true if the named service is availablepublic java.lang.String[] getServiceNameList(java.lang.String contextName)
contextName - the context name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||