Class PerUserPoolDataSourceFactory

  • All Implemented Interfaces:
    javax.naming.spi.ObjectFactory

    public class PerUserPoolDataSourceFactory
    extends InstanceKeyDataSourceFactory
    A JNDI ObjectFactory which creates SharedPoolDataSources
    Since:
    2.0
    • Field Detail

      • PER_USER_POOL_CLASSNAME

        private static final java.lang.String PER_USER_POOL_CLASSNAME
    • Constructor Detail

      • PerUserPoolDataSourceFactory

        public PerUserPoolDataSourceFactory()
    • Method Detail

      • isCorrectClass

        protected boolean isCorrectClass​(java.lang.String className)
        Specified by:
        isCorrectClass in class InstanceKeyDataSourceFactory
        Parameters:
        className - The class name to test.
        Returns:
        true if and only if className is the value returned from getClass().getName().toString()
      • getNewInstance

        protected InstanceKeyDataSource getNewInstance​(javax.naming.Reference ref)
                                                throws java.io.IOException,
                                                       java.lang.ClassNotFoundException
        Description copied from class: InstanceKeyDataSourceFactory
        Creates an instance of the subclass and sets any properties contained in the Reference.
        Specified by:
        getNewInstance in class InstanceKeyDataSourceFactory
        Parameters:
        ref - The properties to be set on the created DataSource
        Returns:
        A configured DataSource of the appropriate type.
        Throws:
        java.io.IOException - If an I/O error occurs during the deserialization of a configuration parameter.
        java.lang.ClassNotFoundException - If a class cannot be found during the deserialization of a configuration parameter.