站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.0.0

ServiceType.Registry (NetBeans Utilities API) - NetBeans API Javadoc 5.0.0

 

org.openide
Class ServiceType.Registry

java.lang.Object
  extended byorg.openide.ServiceType.Registry
All Implemented Interfaces:
Serializable
Enclosing class:
ServiceType

Deprecated. Use lookup instead.

public abstract static class ServiceType.Registry
extends Object
implements Serializable

The registry of all services. This class is provided by the implementation of the IDE 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

Constructor Summary
ServiceType.Registry()
          Deprecated.  
 
Method Summary
 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 services()
          Deprecated. Get all available services managed by the engine.
 Enumeration services(Class 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceType.Registry

public ServiceType.Registry()
Deprecated. 
Method Detail

services

public abstract Enumeration services()
Deprecated. 
Get all available services managed by the engine.

Returns:
an enumeration of ServiceTypes

services

public Enumeration services(Class 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 List getServiceTypes()
Deprecated. 
Getter for list of all service types.

Returns:
a list of ServiceTypes

setServiceTypes

public abstract void setServiceTypes(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

public ServiceType find(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(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

 

Built on May 3 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.