Class ObjectFactory

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

    public class ObjectFactory
    extends java.lang.Object
    implements javax.naming.spi.ObjectFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectFactory()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getObjectInstance​(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,​?> environment)  
      protected static javax.naming.Reference getReference​(java.lang.Object obj)  
      protected static byte[] serializeObject​(java.lang.Object obj)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectFactory

        public ObjectFactory()
    • Method Detail

      • getObjectInstance

        public java.lang.Object getObjectInstance​(java.lang.Object obj,
                                                  javax.naming.Name name,
                                                  javax.naming.Context nameCtx,
                                                  java.util.Hashtable<?,​?> environment)
                                           throws java.lang.Exception
        Specified by:
        getObjectInstance in interface javax.naming.spi.ObjectFactory
        Throws:
        java.lang.Exception
        See Also:
        ObjectFactory.getObjectInstance(Object, Name, Context, Hashtable)
      • getReference

        protected static javax.naming.Reference getReference​(java.lang.Object obj)
                                                      throws javax.naming.NamingException
        Throws:
        javax.naming.NamingException
      • serializeObject

        protected static byte[] serializeObject​(java.lang.Object obj)
                                         throws java.io.IOException
        Throws:
        java.io.IOException