com.cisco.services.tracing
Class TraceManagerFactory

java.lang.Object
  extended by com.cisco.services.tracing.TraceManagerFactory

public class TraceManagerFactory
extends java.lang.Object

The TraceManagerFactory class is a class by which applications obtain a TraceManager object. The TraceModule passed in the constructor is registered in a list. The list can be enumerated using the getModules() method.

Version:
0.2

Method Summary
static java.util.Enumeration getModules()
          Returns an enumeration of the TraceModules registered with this factory.
static TraceManager registerModule(TraceModule module)
          Returns an instance of a TraceManager object.
static TraceManager registerModule(TraceModule module, java.lang.String[] subFacilities, TraceWriterManager traceWriterManager)
          Returns an instance of a TraceManager object.
static TraceManager registerModule(TraceModule module, TraceWriterManager traceWriterManager)
          Returns an instance of a TraceManager object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerModule

public static TraceManager registerModule(TraceModule module,
                                          java.lang.String[] subFacilities,
                                          TraceWriterManager traceWriterManager)
Returns an instance of a TraceManager object. Trace output will be redirected to the TraceWriterManager object specified.


registerModule

public static TraceManager registerModule(TraceModule module,
                                          TraceWriterManager traceWriterManager)
Returns an instance of a TraceManager object. Trace output will be redirected to the TraceWriterManager object specified.


registerModule

public static TraceManager registerModule(TraceModule module)
Returns an instance of a TraceManager object. The contained TraceWriterManager will not have any default TraceWriters.


getModules

public static java.util.Enumeration getModules()
Returns an enumeration of the TraceModules registered with this factory.