Class PoolProperties.InterceptorDefinition

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    PoolProperties

    public static class PoolProperties.InterceptorDefinition
    extends java.lang.Object
    implements java.io.Serializable
    Definition of a JDBC interceptor with its configuration properties.
    See Also:
    Serialized Form
    • Field Detail

      • className

        protected java.lang.String className
        Interceptor class name.
      • clazz

        protected volatile java.lang.Class<?> clazz
        Cached interceptor class.
    • Constructor Detail

      • InterceptorDefinition

        public InterceptorDefinition​(java.lang.String className)
        Constructs an InterceptorDefinition with the given class name.
        Parameters:
        className - the interceptor class name
      • InterceptorDefinition

        public InterceptorDefinition​(java.lang.Class<?> cl)
        Constructs an InterceptorDefinition with the given class.
        Parameters:
        cl - the interceptor class
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Returns the interceptor class name.
        Returns:
        the class name
      • addProperty

        public void addProperty​(java.lang.String name,
                                java.lang.String value)
        Adds a property with the given name and value.
        Parameters:
        name - the property name
        value - the property value
      • getProperties

        public java.util.Map<java.lang.String,​PoolProperties.InterceptorProperty> getProperties()
        Returns the map of interceptor properties.
        Returns:
        the properties map
      • getInterceptorClass

        public java.lang.Class<? extends JdbcInterceptor> getInterceptorClass()
                                                                       throws java.lang.ClassNotFoundException
        Returns the interceptor class, loading it if necessary.
        Returns:
        the interceptor class
        Throws:
        java.lang.ClassNotFoundException - if the class cannot be found