org.netbeans.core/2 3.32

org.netbeans.core
Class Services

java.lang.Object
  extended by org.openide.ServiceType.Registry
      extended by org.netbeans.core.Services
All Implemented Interfaces:
Serializable, EventListener, LookupListener

Deprecated. Obsoleted by lookup and new settings system.

@Deprecated
public final class Services
extends ServiceType.Registry
implements LookupListener

Works with all service types.

See Also:
Serialized Form

Constructor Summary
Services()
          Deprecated.  
 
Method Summary
 ServiceType find(Class clazz)
          Deprecated.  
 ServiceType find(String name)
          Deprecated. Override to specially look up no-op services.
static Services getDefault()
          Deprecated. Default instance
 List<ServiceType> getServiceTypes()
          Deprecated. Getter for list of all services types.
 void resultChanged(LookupEvent ev)
          Deprecated. A change in lookup occured.
 Enumeration<ServiceType> services()
          Deprecated. all services
<T extends ServiceType>
Enumeration<T>
services(Class<T> clazz)
          Deprecated. Get all available services that are subclass of given class
 void setServiceTypes(List arr0)
          Deprecated. Setter for list of all services types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Services

public Services()
Deprecated. 
Method Detail

getDefault

public static Services getDefault()
Deprecated. 
Default instance


find

public ServiceType find(Class clazz)
Deprecated. 
Overrides:
find in class ServiceType.Registry

find

public ServiceType find(String name)
Deprecated. 
Override to specially look up no-op services.

Overrides:
find in class ServiceType.Registry

resultChanged

public void resultChanged(LookupEvent ev)
Deprecated. 
A change in lookup occured.

Specified by:
resultChanged in interface LookupListener
Parameters:
ev - event describing the change

getServiceTypes

public List<ServiceType> getServiceTypes()
Deprecated. 
Getter for list of all services types.

Specified by:
getServiceTypes in class ServiceType.Registry
Returns:
list of ServiceType

setServiceTypes

public void setServiceTypes(List arr0)
Deprecated. 
Setter for list of all services types. This allows to change instaces of the objects but only of the types that are already registered to the system by manifest sections.

Specified by:
setServiceTypes in class ServiceType.Registry
Parameters:
arr - list of ServiceTypes

services

public Enumeration<ServiceType> services()
Deprecated. 
all services

Specified by:
services in class ServiceType.Registry

services

public <T extends ServiceType> Enumeration<T> services(Class<T> clazz)
Deprecated. 
Get all available services that are subclass of given class

Overrides:
services in class ServiceType.Registry
Parameters:
clazz - the class that all services should be subclass of
Returns:
an enumeration of ServiceTypes that are subclasses of given class

org.netbeans.core/2 3.32

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.