sun.tracing
Class MultiplexProviderFactory

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

public class MultiplexProviderFactory
extends ProviderFactory

Factory class to create tracing Providers. This factory creates a "multiplex provider", which is a provider that encapsulates a list of providers and whose probes trigger a corresponding trigger in each of the encapsulated providers' probes. This is used when there are multiple tracing frameworks activated at once. A user-defined provider gets implementation for each of the activated frameworks and this multiplex framework is what is ultimately passed back to the user. All probe triggers are multiplexed to each active framework.

Since:
1.7

Constructor Summary
MultiplexProviderFactory(java.util.Set<ProviderFactory> factories)
           
 
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

MultiplexProviderFactory

public MultiplexProviderFactory(java.util.Set<ProviderFactory> factories)
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.