sun.tracing
Class PrintStreamProviderFactory

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

public class PrintStreamProviderFactory
extends ProviderFactory

Factory class to create tracing Providers. This factory will create tracing instances that print to a PrintStream when activated.

Since:
1.7

Constructor Summary
PrintStreamProviderFactory(java.io.PrintStream stream)
           
 
Method Summary
<T extends Provider>
T
createProvider(java.lang.Class<T> cls)
          Creates an implementation of a Provider interface.
 
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

PrintStreamProviderFactory

public PrintStreamProviderFactory(java.io.PrintStream stream)
Method Detail

createProvider

public <T extends Provider> T createProvider(java.lang.Class<T> cls)
Description copied from class: ProviderFactory
Creates an implementation of a Provider interface.

Specified by:
createProvider in class ProviderFactory
Parameters:
cls - the provider interface to be defined.
Returns:
an implementation of cls, whose methods, when called, will trigger tracepoints in the application.