Package oracle.jdbc.diagnostics
Class DefaultTraceEventListenerProvider
- java.lang.Object
-
- oracle.jdbc.diagnostics.DefaultTraceEventListenerProvider
-
- All Implemented Interfaces:
OracleResourceProvider,TraceEventListenerProvider
public final class DefaultTraceEventListenerProvider extends java.lang.Object implements TraceEventListenerProvider
The defaultTraceEventListenerprovider of Oracle JDBC. This provider is designed to be loaded usingServiceLoader. The name of this provider is the default value of theOracleConnection.CONNECTION_PROPERTY_PROVIDER_TRACE_EVENT_LISTENERconnection property.- Since:
- 23
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface oracle.jdbc.spi.OracleResourceProvider
OracleResourceProvider.Parameter
-
-
Field Summary
Fields Modifier and Type Field Description static TraceEventListenerNO_OP_TRACE_EVENT_LISTENERA listener that does nothing.
-
Constructor Summary
Constructors Constructor Description DefaultTraceEventListenerProvider()Public no-args constructor required byServiceLoader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of this provider.TraceEventListenergetTraceEventListener(java.util.Map<OracleResourceProvider.Parameter,java.lang.CharSequence> parameterValues)Returns aTraceEventListenerthat receives application and system tracing events.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.jdbc.spi.OracleResourceProvider
getParameters
-
-
-
-
Field Detail
-
NO_OP_TRACE_EVENT_LISTENER
public static final TraceEventListener NO_OP_TRACE_EVENT_LISTENER
A listener that does nothing. This listener is provided if the dms.jar is not on the class path.
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:OracleResourceProviderReturns the name of this provider.
- Specified by:
getNamein interfaceOracleResourceProvider- Returns:
- The name of this provider. Not null.
-
getTraceEventListener
public TraceEventListener getTraceEventListener(java.util.Map<OracleResourceProvider.Parameter,java.lang.CharSequence> parameterValues)
Description copied from interface:TraceEventListenerProviderReturns a
TraceEventListenerthat receives application and system tracing events.The
parameterValuespassed to this method is aMapcomprised as follows:-
The key set is the same as, or a subset of, the
Parameterobjects returned by an invocation ofOracleResourceProvider.getParameters()on this provider. -
If no value is configured for a parameter, then the
Mapcontains the default value of thatParameter, if any. If the parameter has no default value, then the map does not contain an entry for thatParameter. -
The
Mapdoes not contain entries having null values.
parameterValuesMapmay contain aCharSequencehaving a security sensitive value. After this method returns, the caller may wipe the contents of theseCharSequencevalues from memory. Implementations of this method should not retain a reference to theseCharSequenceobjects.- Specified by:
getTraceEventListenerin interfaceTraceEventListenerProvider- Parameters:
parameterValues- Parameters configured by connection properties . Not null. May be empty.- Returns:
- A
TraceEventListener. Not null.
-
The key set is the same as, or a subset of, the
-
-