com.ibm.tivoli.maximo.skd.util

Class PooledDateFormatFactory

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.util.PooledDateFormatFactory
  • All Implemented Interfaces:
    org.apache.commons.pool.PoolableObjectFactory


    public class PooledDateFormatFactory
    extends java.lang.Object
    implements org.apache.commons.pool.PoolableObjectFactory
    Class responsible for managing instances of java.text.SimpleDateFormat inside an object pool.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PooledDateFormatFactory(java.lang.String pattern)
      Builds a new pooled object factory.
    • Constructor Detail

      • PooledDateFormatFactory

        public PooledDateFormatFactory(java.lang.String pattern)
        Builds a new pooled object factory.
        Parameters:
        pattern - - Date format to be used in the SimpleDateFormat instance.
    • Method Detail

      • activateObject

        public void activateObject(java.lang.Object object)
                            throws java.lang.Exception
        Specified by:
        activateObject in interface org.apache.commons.pool.PoolableObjectFactory
        Throws:
        java.lang.Exception
      • destroyObject

        public void destroyObject(java.lang.Object object)
                           throws java.lang.Exception
        Specified by:
        destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
        Throws:
        java.lang.Exception
      • makeObject

        public java.lang.Object makeObject()
                                    throws java.lang.Exception
        Specified by:
        makeObject in interface org.apache.commons.pool.PoolableObjectFactory
        Throws:
        java.lang.Exception
      • passivateObject

        public void passivateObject(java.lang.Object object)
                             throws java.lang.Exception
        Specified by:
        passivateObject in interface org.apache.commons.pool.PoolableObjectFactory
        Throws:
        java.lang.Exception
      • validateObject

        public boolean validateObject(java.lang.Object object)
        Specified by:
        validateObject in interface org.apache.commons.pool.PoolableObjectFactory