@Deprecated public abstract static class ServiceType.Registry extends Object implements Serializable
This class can be serialized to securely save settings of all services in the system.
Constructor and Description |
---|
Registry()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ServiceType |
find(Class clazz)
Deprecated.
Just use lookup.
|
ServiceType |
find(String name)
Deprecated.
Find a service type of a supplied name in the registry.
|
abstract List |
getServiceTypes()
Deprecated.
Getter for list of all service types.
|
abstract Enumeration<ServiceType> |
services()
Deprecated.
Get all available services managed by the engine.
|
<T extends ServiceType> |
services(Class<T> clazz)
Deprecated.
Get all available services that are assignable to the given superclass.
|
abstract void |
setServiceTypes(List arr)
Deprecated.
Better to change service instance files instead.
|
public abstract Enumeration<ServiceType> services()
ServiceType
spublic <T extends ServiceType> Enumeration<T> services(Class<T> clazz)
clazz
- the class that all services should be subclass ofServiceType
spublic abstract List getServiceTypes()
ServiceType
s@Deprecated public abstract void setServiceTypes(List arr)
arr
- a list of ServiceType
s@Deprecated public ServiceType find(Class clazz)
This could be used during (de-)serialization of a service type: only store its class name and then try to find the type implemented by that class later.
clazz
- the class of the service type looked fornull
if it does not existpublic ServiceType find(String name)
This could be used during (de-)serialization of a service type: only store its name and then try to find the type later.
name
- (display) name of service type to findnull
if it does not exist