sun.tracing
Class NullProviderFactory

java.lang.Object
  extended by com.sun.tracing.ProviderFactory
      extended by sun.tracing.NullProviderFactory

public class NullProviderFactory
extends ProviderFactory

Factory class to create tracing Providers. This factory will create tracing instances that do nothing. It is used when no tracing is desired, but Provider instances still must be generated so that tracing calls in the application continue to run.

Since:
1.7

Constructor Summary
NullProviderFactory()
           
 
Method Summary
<T extends Provider>
T
createProvider(java.lang.Class<T> cls)
          Creates and returns a Null provider.
 
Methods inherited from class com.sun.tracing.ProviderFactory
getDefaultFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullProviderFactory

public NullProviderFactory()
Method Detail

createProvider

public <T extends Provider> T createProvider(java.lang.Class<T> cls)
Creates and returns a Null provider. See comments at ProviderSkeleton.createProvider() for more details.

Specified by:
createProvider in class ProviderFactory
Parameters:
cls - the provider interface to be defined.
Returns:
a provider whose probe trigger are no-ops.