org.openide.modules 7.27.1

org.openide.modules
Class Modules

java.lang.Object
  extended by org.openide.modules.Modules

public abstract class Modules
extends Object

Information about the set of available modules.

Since:
org.openide.modules 7.19

Constructor Summary
protected Modules()
          Constructor for subclasses.
 
Method Summary
static Modules getDefault()
          Gets the singleton set of modules.
abstract  ModuleInfo ownerOf(Class<?> clazz)
          Finds the module which loaded a class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Modules

protected Modules()
Constructor for subclasses.

Method Detail

getDefault

public static Modules getDefault()
Gets the singleton set of modules. An implementation of this service should be registered by the module system. The fallback implementation implements ownerOf(java.lang.Class) using a linear search.

Returns:
the default instance

ownerOf

public abstract ModuleInfo ownerOf(Class<?> clazz)
Finds the module which loaded a class.

Parameters:
clazz - a class
Returns:
the owner of the class, or null if it is not owned by any module
See Also:
ModuleInfo.owns(java.lang.Class)

org.openide.modules 7.27.1

Built on December 7 2011.  |  Portions Copyright 1997-2011 Oracle. All rights reserved.