org.openide
Class ServiceType.Registry

java.lang.Object
  extended by org.openide.ServiceType.Registry
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ServiceType

Deprecated. Use lookup instead.

@Deprecated
public abstract static class ServiceType.Registry
extends java.lang.Object
implements java.io.Serializable

The registry of all services. This class is provided by the NetBeans core and should hold all of the services registered to the system.

This class can be serialized to securely save settings of all services in the system.

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
          Deprecated. suid
 
Constructor Summary
ServiceType.Registry()
          Deprecated.  
 
Method Summary
 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>
java.util.Enumeration<T>
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
Deprecated. 
suid

See Also:
Constant Field Values
Constructor Detail

ServiceType.Registry

public ServiceType.Registry()
Deprecated. 
Method Detail

services

public abstract java.util.Enumeration<ServiceType> services()
Deprecated. 
Get all available services managed by the engine.

Returns:
an enumeration of ServiceTypes

services

public <T extends ServiceType> java.util.Enumeration<T> services(java.lang.Class<T> clazz)
Deprecated. 
Get all available services that are assignable to the given superclass.

Parameters:
clazz - the class that all services should be subclass of
Returns:
an enumeration of all matching ServiceTypes

getServiceTypes

public abstract java.util.List getServiceTypes()
Deprecated. 
Getter for list of all service types.

Returns:
a list of ServiceTypes

setServiceTypes

@Deprecated
public abstract void setServiceTypes(java.util.List arr)
Deprecated. Better to change service instance files instead.

Setter for list of service types. This permits changing instances of the objects but only within the types that are already registered in the system by manifest sections. If an instance of any other type is in the list it is ignored.

Parameters:
arr - a list of ServiceTypes

find

@Deprecated
public ServiceType find(java.lang.Class clazz)
Deprecated. Just use lookup.

Find the service type implemented as a given class. The whole registry is searched for a service type of that exact class (subclasses do not count).

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.

Parameters:
clazz - the class of the service type looked for
Returns:
the desired type or null if it does not exist

find

public ServiceType find(java.lang.String name)
Deprecated. 
Find a service type of a supplied name in the registry.

This could be used during (de-)serialization of a service type: only store its name and then try to find the type later.

Parameters:
name - (display) name of service type to find
Returns:
the desired type or null if it does not exist