Class ObjectFactoryBuilder

    • Method Detail

      • getObjectInstance

        public Object getObjectInstance​(Object ref,
                                        Name name,
                                        Context nameCtx,
                                        Hashtable<?,​?> environment)
                                 throws Exception
        Create an object instance.
        Specified by:
        getObjectInstance in interface ObjectFactory
        Parameters:
        ref - Object containing reference information
        name - The name relative to nameCtx
        nameCtx - The naming context
        environment - The environment information
        Returns:
        The object
        Throws:
        Exception - If any error occur
      • getObjectInstance

        public Object getObjectInstance​(Object ref,
                                        Name name,
                                        Context nameCtx,
                                        Hashtable<?,​?> environment,
                                        Attributes attributes)
                                 throws Exception
        Create an object instance.
        Specified by:
        getObjectInstance in interface DirObjectFactory
        Parameters:
        ref - Object containing reference information
        name - The name relative to nameCtx
        nameCtx - The naming context
        environment - The environment information
        attributes - The directory attributes
        Returns:
        The object
        Throws:
        Exception - If any error occur