java.io.Serializable@Deprecated
public abstract static class ServiceType.Registry
extends java.lang.Object
implements java.io.Serializable
This class can be serialized to securely save settings of all services in the system.
| Constructor | Description |
|---|---|
Registry() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
ServiceType |
find(java.lang.Class clazz) |
Deprecated.
Just use lookup.
|
ServiceType |
find(java.lang.String name) |
Deprecated.
Find a service type of a supplied name in the registry.
|
abstract java.util.List |
getServiceTypes() |
Deprecated.
Getter for list of all service types.
|
abstract java.util.Enumeration<ServiceType> |
services() |
Deprecated.
Get all available services managed by the engine.
|
<T extends ServiceType> |
services(java.lang.Class<T> clazz) |
Deprecated.
Get all available services that are assignable to the given superclass.
|
abstract void |
setServiceTypes(java.util.List arr) |
Deprecated.
Better to change service instance files instead.
|
public abstract java.util.Enumeration<ServiceType> services()
ServiceTypespublic <T extends ServiceType> java.util.Enumeration<T> services(java.lang.Class<T> clazz)
clazz - the class that all services should be subclass ofServiceTypespublic abstract java.util.List getServiceTypes()
ServiceTypes@Deprecated public abstract void setServiceTypes(java.util.List arr)
arr - a list of ServiceTypes@Deprecated public ServiceType find(java.lang.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(java.lang.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 existBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.