public final class DefaultTraceEventListenerProvider extends java.lang.Object implements TraceEventListenerProvider
TraceEventListener provider of Oracle JDBC. This provider
is designed to be loaded using ServiceLoader. The
name of this provider is the default value of the
OracleConnection.CONNECTION_PROPERTY_PROVIDER_TRACE_EVENT_LISTENER
connection property.OracleResourceProvider.Parameter| Modifier and Type | Field and Description |
|---|---|
static TraceEventListener |
NO_OP_TRACE_EVENT_LISTENER
A listener that does nothing.
|
| Constructor and Description |
|---|
DefaultTraceEventListenerProvider()
Public no-args constructor required by
ServiceLoader. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name of this provider.
|
TraceEventListener |
getTraceEventListener(java.util.Map<OracleResourceProvider.Parameter,java.lang.CharSequence> parameterValues)
Returns a
TraceEventListener that receives application and system
tracing events. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterspublic static final TraceEventListener NO_OP_TRACE_EVENT_LISTENER
public DefaultTraceEventListenerProvider()
ServiceLoader.
The check for the dms.jar happens here.public java.lang.String getName()
OracleResourceProviderReturns the name of this provider.
getName in interface OracleResourceProviderpublic TraceEventListener getTraceEventListener(java.util.Map<OracleResourceProvider.Parameter,java.lang.CharSequence> parameterValues)
TraceEventListenerProvider
Returns a TraceEventListener that receives application and system
tracing events.
The parameterValues passed to this method is a Map
comprised as follows:
Parameter objects returned by an invocation of
OracleResourceProvider.getParameters() on this provider.
Map
contains the default value of that
Parameter, if any. If the parameter has no default value, then the
map does not contain an entry for that Parameter.
Map does not contain entries having null values.
parameterValues Map may contain a CharSequence
having a
security sensitive value. After this
method returns, the caller may wipe the contents of these
CharSequence values from memory. Implementations of this method
should not retain a reference to these CharSequence objects.
getTraceEventListener in interface TraceEventListenerProviderparameterValues - Parameters
configured by connection properties
. Not null. May be empty.TraceEventListener. Not null.