javax.slee.management
Class SleeProviderFactory
java.lang.Object
|
+--javax.slee.management.SleeProviderFactory
- public final class SleeProviderFactory
- extends java.lang.Object
The SleeProviderFactory provides a static factory method for
instantiating SleeProvider peer classes. The peer class provides
a management client with enough information to begin interacting with a
particular vendor's SLEE management subsystem. Every SLEE vendor must provide
an implementation of the SleeProvider interface (a peer class)
and document the its fully-qualifed class name.
|
Method Summary |
static SleeProvider |
getSleeProvider(java.lang.String peerClassName)
Get an instance of a SleeProvider peer class. |
static SleeProvider |
getSleeProvider(java.lang.String peerClassName,
java.lang.ClassLoader classloader)
Get an instance of a SleeProvider peer class using the specified
class loader. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SleeProviderFactory
public SleeProviderFactory()
getSleeProvider
public static SleeProvider getSleeProvider(java.lang.String peerClassName)
throws java.lang.NullPointerException,
PeerUnavailableException
- Get an instance of a
SleeProvider peer class. This method is
equivalent to getSleeProvider(peerClassName,
SleeProviderFactory.class.getClassLoader()). In the case where the
SleeProviderFactory's class loader is null,
ClassLoader.getSystemClassLoader() is used instead.
- Parameters:
peerClassName - the fully-qualified class name of a class that
implements the SleeProvider interface.- Returns:
- an instance of the specified class.
- Throws:
java.lang.NullPointerException - if peerClassName is null.PeerUnavailableException - if the peer class could not be instantiated
or did not implement the SleeProvider interface.
getSleeProvider
public static SleeProvider getSleeProvider(java.lang.String peerClassName,
java.lang.ClassLoader classloader)
throws java.lang.NullPointerException,
PeerUnavailableException
- Get an instance of a
SleeProvider peer class using the specified
class loader.
- Parameters:
peerClassName - the fully-qualified class name of a class that
implements the SleeProvider interface.classloader - the classloader to use to load the peer class.- Returns:
- an instance of the specified class.
- Throws:
java.lang.NullPointerException - if peerClassName or classloader
is null.PeerUnavailableException - if the peer class could not be instantiated
or did not implement the SleeProvider interface.