|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.tracing.ProviderFactory
public abstract class ProviderFactory
ProviderFactory is a factory class used to create instances of
providers.
To enable tracing in an application, this class must be used to create
instances of the provider interfaces defined by users.
The system-defined factory is obtained by using the
getDefaultFactory() static method. The resulting instance can be
used to create any number of providers.
| Constructor Summary | |
|---|---|
protected |
ProviderFactory()
|
| Method Summary | ||
|---|---|---|
abstract
|
createProvider(java.lang.Class<T> cls)
Creates an implementation of a Provider interface. |
|
static ProviderFactory |
getDefaultFactory()
Returns an implementation of a ProviderFactory which
creates instances of Providers. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ProviderFactory()
| Method Detail |
|---|
public abstract <T extends Provider> T createProvider(java.lang.Class<T> cls)
cls - the provider interface to be defined.
cls, whose methods, when called,
will trigger tracepoints in the application.
java.lang.NullPointerException - if cls is nullpublic static ProviderFactory getDefaultFactory()
ProviderFactory which
creates instances of Providers.
The created Provider instances will be linked to all appropriate
and enabled system-defined tracing mechanisms in the JDK.
ProviderFactory that is used to create Providers.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||