Class PoolProperties.InterceptorDefinition
java.lang.Object
org.apache.tomcat.jdbc.pool.PoolProperties.InterceptorDefinition
- All Implemented Interfaces:
Serializable
- Enclosing class:
PoolProperties
Definition of a JDBC interceptor with its configuration properties.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringInterceptor class name.protected Class<?> Cached interceptor class.protected Map<String, PoolProperties.InterceptorProperty> Map of interceptor properties. -
Constructor Summary
ConstructorsConstructorDescriptionInterceptorDefinition(Class<?> cl) Constructs an InterceptorDefinition with the given class.InterceptorDefinition(String className) Constructs an InterceptorDefinition with the given class name. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, String value) Adds a property with the given name and value.voidAdds the given interceptor property.Returns the interceptor class name.Class<? extends JdbcInterceptor> Returns the interceptor class, loading it if necessary.Returns the map of interceptor properties.
-
Field Details
-
className
Interceptor class name. -
properties
Map of interceptor properties. -
clazz
Cached interceptor class.
-
-
Constructor Details
-
InterceptorDefinition
Constructs an InterceptorDefinition with the given class name.- Parameters:
className- the interceptor class name
-
InterceptorDefinition
Constructs an InterceptorDefinition with the given class.- Parameters:
cl- the interceptor class
-
-
Method Details
-
getClassName
-
addProperty
-
addProperty
Adds the given interceptor property.- Parameters:
p- the property to add
-
getProperties
Returns the map of interceptor properties.- Returns:
- the properties map
-
getInterceptorClass
Returns the interceptor class, loading it if necessary.- Returns:
- the interceptor class
- Throws:
ClassNotFoundException- if the class cannot be found
-