|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.applicationcontext.WildCardServiceProvider
This service provider will attempt to construct a new instance of any
requested service. It just uses the service name as the service class
name.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private Hashtable |
service
|
Fields inherited from interface wt.services.applicationcontext.ApplicationContextServiceProvider |
SERVICE, WILD_CARD |
Constructor Summary | |
WildCardServiceProvider()
|
Method Summary | |
Object |
getService(ApplicationContextChild contextChild,
Object requestor,
Class serviceClass,
Object selector)
Supported API: false |
Object |
getService(ApplicationContextChild contextChild,
Object requestor,
String serviceName,
Object selector)
Supported API: false |
String |
getServiceImplementationName(ApplicationContextChild contextChild,
Object requestor,
String serviceName,
Object selector)
Supported API: false |
Map |
getServiceImplementationNameMap(ApplicationContextChild contextChild,
ACRequestor requestor,
String serviceName,
Object selector)
Return the name of the service implementation. |
Map |
getServiceImplementationNameMap(ApplicationContextChild contextChild,
Object[] requestors,
String serviceName,
Object selector)
Return the name of the service implementation. |
Map |
getServiceMap(ApplicationContextChild contextChild,
ACRequestor requestor,
Class serviceClass,
Object selector)
Return a service based on context, requestor and logical service type. |
Map |
getServiceMap(ApplicationContextChild contextChild,
ACRequestor requestor,
String serviceName,
Object selector)
Return an instance of a service based on context, requestor and logical service name. |
Map |
getServiceMap(ApplicationContextChild contextChild,
Object[] requestors,
Class serviceClass,
Object selector)
Return a service based on context, requestor and logical service type. |
Map |
getServiceMap(ApplicationContextChild contextChild,
Object[] requestors,
String serviceName,
Object selector)
Return an instance of a service based on context, requestor and logical service name. |
String[] |
getServiceNames()
Supported API: false |
Enumeration |
getServiceSelectors(ApplicationContextChild contextChild,
String serviceName,
Object requestor)
A service selector is an optional qualifier which can be used to help identify which version of a service is desired. |
Enumeration |
getServiceSelectors(String serviceName,
String requestorName)
Supported API: false |
protected Object |
manufactureService(Class serviceClass)
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Hashtable service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
Constructor Detail |
public WildCardServiceProvider()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
public String[] getServiceNames()
getServiceNames
in interface ApplicationContextServiceProvider
public Object getService(ApplicationContextChild contextChild, Object requestor, String serviceName, Object selector) throws ServiceNotFoundException, UnableToCreateServiceException
getService
in interface ApplicationContextServiceProvider
contextChild
- requestor
- serviceName
- selector
-
ServiceNotFoundException
UnableToCreateServiceException
public Object getService(ApplicationContextChild contextChild, Object requestor, Class serviceClass, Object selector) throws ServiceNotFoundException, UnableToCreateServiceException
getService
in interface ApplicationContextServiceProvider
contextChild
- requestor
- serviceClass
- selector
-
ServiceNotFoundException
UnableToCreateServiceException
public Map getServiceMap(ApplicationContextChild contextChild, Object[] requestors, String serviceName, Object selector) throws UnableToCreateServiceException
getServiceMap
in interface ApplicationContextServiceProvider
contextChild
- The context in which the service is being requested.requestors
- The target of the service request.serviceName
- The name of the requested service.selector
- An optional selector to further identify the service.
UnableToCreateServiceException
public Map getServiceMap(ApplicationContextChild contextChild, Object[] requestors, Class serviceClass, Object selector) throws UnableToCreateServiceException
getServiceMap
in interface ApplicationContextServiceProvider
contextChild
- The service context in which the getService request was initiated.requestors
- The object on who's behalf the service request is being made.serviceClass
- The logical service class being requested.selector
- An optional selector to further identify the service.
UnableToCreateServiceException
public Enumeration getServiceSelectors(String serviceName, String requestorName)
serviceName
- requestorName
-
public String getServiceImplementationName(ApplicationContextChild contextChild, Object requestor, String serviceName, Object selector)
getServiceImplementationName
in interface ApplicationContextServiceProvider
contextChild
- requestor
- serviceName
- selector
-
public Map getServiceImplementationNameMap(ApplicationContextChild contextChild, Object[] requestors, String serviceName, Object selector)
getServiceImplementationNameMap
in interface ApplicationContextServiceProvider
contextChild
- The context in which the service request was initiated. May be used to determine which service implementation should be returned.requestors
- The requestor or target of the service. Used to determine which service implementation should be returned.serviceName
- The logical name of the desired service.selector
- An optional selector to further identify the service.
protected Object manufactureService(Class serviceClass) throws IllegalAccessException, InstantiationException
serviceClass
-
IllegalAccessException
InstantiationException
public Map getServiceMap(ApplicationContextChild contextChild, ACRequestor requestor, String serviceName, Object selector) throws UnableToCreateServiceException
getServiceMap
in interface ApplicationContextServiceProvider
contextChild
- The context in which the service is being requested.requestor
- serviceName
- The name of the requested service.selector
- An optional selector to further identify the service.
UnableToCreateServiceException
public Map getServiceMap(ApplicationContextChild contextChild, ACRequestor requestor, Class serviceClass, Object selector) throws UnableToCreateServiceException
getServiceMap
in interface ApplicationContextServiceProvider
contextChild
- The service context in which the getService request was initiated.requestor
- serviceClass
- The logical service class being requested.selector
- An optional selector to further identify the service.
UnableToCreateServiceException
public Map getServiceImplementationNameMap(ApplicationContextChild contextChild, ACRequestor requestor, String serviceName, Object selector)
getServiceImplementationNameMap
in interface ApplicationContextServiceProvider
contextChild
- The context in which the service request was initiated. May be used to determine which service implementation should be returned.requestor
- serviceName
- The logical name of the desired service.selector
- An optional selector to further identify the service.
public Enumeration getServiceSelectors(ApplicationContextChild contextChild, String serviceName, Object requestor)
getServiceSelectors
in interface ApplicationContextServiceProvider
contextChild
- serviceName
- requestor
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |