Class DefaultServiceProvider
java.lang.Object
wt.services.applicationcontext.implementation.DefaultServiceProvider
- All Implemented Interfaces:
Externalizable,Serializable,wt.services.applicationcontext.ApplicationContextChild
public final class DefaultServiceProvider
extends Object
implements wt.services.applicationcontext.ApplicationContextChild, Externalizable
A default service provider implementation that conveniently wraps
Supported API: true
Extendable: false
WTDefaultApplicationContext
to issue service objects.
Supported API: true
Extendable: false
- See Also:
-
WTDefaultApplicationContext- Serialized Form
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetService(Class service_class) Returns an implementation of a service object based upon the supplied arguments.static ObjectgetService(Class service_class, Object requestor) Returns an implementation of a service object based upon the supplied arguments.static ObjectgetService(Class service_class, String selector) Returns an implementation of a service object based upon the supplied arguments.static ObjectgetService(Class service_class, String selector, Object requestor) Returns an implementation of a service object based upon the supplied arguments.static ObjectgetService(String service_name) Returns an implementation of a service object based upon the supplied arguments.static ObjectgetService(String service_name, Object requestor) Returns an implementation of a service object based upon the supplied arguments.static ObjectgetService(String service_name, String selector) Returns an implementation of a service object based upon the supplied arguments.static ObjectgetService(String service_name, String selector, Object requestor) Returns an implementation of a service object based upon the supplied arguments.static MapgetServiceMap(Class service_class, Object[] requestors) Returns an implementation of a service object based upon the supplied arguments.static MapgetServiceMap(Class service_class, String selector, Object[] requestors) Returns an implementation of a service object based upon the supplied arguments.static MapgetServiceMap(Class service_class, String selector, wt.services.ac.ACRequestor requestor) Returns an implementation of a service object based upon the supplied arguments.static MapgetServiceMap(Class service_class, wt.services.ac.ACRequestor requestor) Returns an implementation of a service object based upon the supplied arguments.static MapgetServiceMap(String service_name, Object[] requestors) Returns an implementation of a service object based upon the supplied arguments.static MapgetServiceMap(String service_name, String selector, Object[] requestors) Returns an implementation of a service object based upon the supplied arguments.static MapgetServiceMap(String service_name, String selector, wt.services.ac.ACRequestor requestor) Returns an implementation of a service object based upon the supplied arguments.static MapgetServiceMap(String service_name, wt.services.ac.ACRequestor requestor) Returns an implementation of a service object based upon the supplied arguments.
-
Method Details
-
getService
public static Object getService(Class service_class, String selector, Object requestor) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_class- Class of the service that is desired. This is required. In typical usage, this is a java Interface the service object returned must implement. The lookup for the particular service implementer is refined by indicating a selector and/or a target object (requestor) that is in need of the service.selector- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.requestor- An object that is the target of the request for service. The typical meaning is the the requestor object needs the service. Java inheritance using the class of the requestor to help determine which service implementation is returned. If the requestor is aClassobject, inheritance based upon the class that the requestor represents is used in the determination.- Returns:
- Object
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getService
public static Object getService(Class service_class, String selector) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_class- Class of the service that is desired. This is required. In typical usage, this is a java Interface the service object returned must implement. The lookup for the particular service implementer is refined by indicating a selector and/or a target object (requestor) that is in need of the service.selector- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.- Returns:
- Object
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getService
public static Object getService(Class service_class, Object requestor) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_class- Class of the service that is desired. This is required. In typical usage, this is a java Interface the service object returned must implement. The lookup for the particular service implementer is refined by indicating a selector and/or a target object (requestor) that is in need of the service.requestor- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.- Returns:
- Object
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getService
public static Object getService(Class service_class) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_class- Class of the service that is desired. This is required. In typical usage, this is a java Interface the service object returned must implement. The lookup for the particular service implementer is refined by indicating a selector and/or a target object (requestor) that is in need of the service.- Returns:
- Object
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getService
public static Object getService(String service_name, String selector, Object requestor) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_name- Name of the service that is desired. This is required. The lookup for the particular service implementer can be refined by indicating a selector and/or a target object (requestor) that is in need of the service.selector- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.requestor- An object that is the target of the request for service. The typical meaning is the the requestor object needs the service. Java inheritance using the class of the requestor to help determine which service implementation is returned. If the requestor is aClassobject, inheritance based upon the class that the requestor represents is used in the determination.- Returns:
- Object
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getService
public static Object getService(String service_name, String selector) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_name- Name of the service that is desired. This is required. The lookup for the particular service implementer can be refined by indicating a selector and/or a target object (requestor) that is in need of the service.selector- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.- Returns:
- Object
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getService
public static Object getService(String service_name, Object requestor) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_name- Name of the service that is desired. This is required. The lookup for the particular service implementer can be refined by indicating a selector and/or a target object (requestor) that is in need of the service.requestor- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.- Returns:
- Object
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getService
public static Object getService(String service_name) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_name- Name of the service that is desired. This is required. The lookup for the particular service implementer can be refined by indicating a selector and/or a target object (requestor) that is in need of the service.- Returns:
- Object
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getServiceMap
public static Map getServiceMap(Class service_class, String selector, Object[] requestors) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_class- Class of the service that is desired. This is required. In typical usage, this is a java Interface the service object returned must implement. The lookup for the particular service implementer is refined by indicating a selector and/or a target object (requestor) that is in need of the service.selector- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.requestors-- Returns:
- Map
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getServiceMap
public static Map getServiceMap(Class service_class, Object[] requestors) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_class- Class of the service that is desired. This is required. In typical usage, this is a java Interface the service object returned must implement. The lookup for the particular service implementer is refined by indicating a selector and/or a target object (requestor) that is in need of the service.requestors-- Returns:
- Map
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getServiceMap
public static Map getServiceMap(String service_name, String selector, Object[] requestors) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_name- Name of the service that is desired. This is required. The lookup for the particular service implementer can be refined by indicating a selector and/or a target object (requestor) that is in need of the service.selector- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.requestors-- Returns:
- Map
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getServiceMap
public static Map getServiceMap(String service_name, Object[] requestors) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_name- Name of the service that is desired. This is required. The lookup for the particular service implementer can be refined by indicating a selector and/or a target object (requestor) that is in need of the service.requestors-- Returns:
- Map
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getServiceMap
public static Map getServiceMap(Class service_class, String selector, wt.services.ac.ACRequestor requestor) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_class- Class of the service that is desired. This is required. In typical usage, this is a java Interface the service object returned must implement. The lookup for the particular service implementer is refined by indicating a selector and/or a target object (requestor) that is in need of the service.selector- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.requestor-- Returns:
- Map
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getServiceMap
public static Map getServiceMap(Class service_class, wt.services.ac.ACRequestor requestor) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_class- Class of the service that is desired. This is required. In typical usage, this is a java Interface the service object returned must implement. The lookup for the particular service implementer is refined by indicating a selector and/or a target object (requestor) that is in need of the service.requestor-- Returns:
- Map
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getServiceMap
public static Map getServiceMap(String service_name, String selector, wt.services.ac.ACRequestor requestor) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_name- Name of the service that is desired. This is required. The lookup for the particular service implementer can be refined by indicating a selector and/or a target object (requestor) that is in need of the service.selector- A selector further qualifies the request for the service. It may also be used instead of a requestor object to request the service. This latter technique is used when a simple string can indicate which variant of the service is needed, rather than supplying a java class.requestor-- Returns:
- Map
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-
getServiceMap
public static Map getServiceMap(String service_name, wt.services.ac.ACRequestor requestor) throws wt.services.applicationcontext.UnableToCreateServiceException Returns an implementation of a service object based upon the supplied arguments.
Supported API: true- Parameters:
service_name- Name of the service that is desired. This is required. The lookup for the particular service implementer can be refined by indicating a selector and/or a target object (requestor) that is in need of the service.requestor-- Returns:
- Map
- Throws:
wt.services.applicationcontext.UnableToCreateServiceException
-