public final class SleeProviderFactory extends Object
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.Constructor and Description |
---|
SleeProviderFactory() |
Modifier and Type | Method and Description |
---|---|
static SleeProvider |
getSleeProvider(String peerClassName)
Get an instance of a
SleeProvider peer class. |
static SleeProvider |
getSleeProvider(String peerClassName,
ClassLoader classloader)
Get an instance of a
SleeProvider peer class using the specified
class loader. |
public static SleeProvider getSleeProvider(String peerClassName) throws NullPointerException, PeerUnavailableException
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.peerClassName
- the fully-qualified class name of a class that
implements the SleeProvider
interface.NullPointerException
- if peerClassName
is null
.PeerUnavailableException
- if the peer class could not be instantiated
or did not implement the SleeProvider
interface.public static SleeProvider getSleeProvider(String peerClassName, ClassLoader classloader) throws NullPointerException, PeerUnavailableException
SleeProvider
peer class using the specified
class loader.peerClassName
- the fully-qualified class name of a class that
implements the SleeProvider
interface.classloader
- the classloader to use to load the peer class.NullPointerException
- if peerClassName
or classloader
is null
.PeerUnavailableException
- if the peer class could not be instantiated
or did not implement the SleeProvider
interface.