IT. Expert System.

Java Standard Edition (SE)

ObjectFactoryBuilder


compact3
javax.naming.spi

Interface ObjectFactoryBuilder



  • public interface ObjectFactoryBuilder
    This interface represents a builder that creates object factories.

    The JNDI framework allows for object implementations to be loaded in dynamically via object factories. For example, when looking up a printer bound in the name space, if the print service binds printer names to References, the printer Reference could be used to create a printer object, so that the caller of lookup can directly operate on the printer object after the lookup. An ObjectFactory is responsible for creating objects of a specific type. JNDI uses a default policy for using and loading object factories. You can override this default policy by calling NamingManager.setObjectFactoryBuilder() with an ObjectFactoryBuilder, which contains the program-defined way of creating/loading object factories. Any ObjectFactoryBuilder implementation must implement this interface that for creating object factories.

    Since:
    1.3
    See Also:
    ObjectFactory, NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable<?, ?>), NamingManager.setObjectFactoryBuilder(javax.naming.spi.ObjectFactoryBuilder)
    • Method Detail

      • createObjectFactory

        ObjectFactory createObjectFactory(Object obj,
                                          Hashtable<?,?> environment)
                                   throws NamingException
        Creates a new object factory using the environment supplied.

        The environment parameter is owned by the caller. The implementation will not modify the object or keep a reference to it, although it may keep a reference to a clone or copy.

        Parameters:
        obj - The possibly null object for which to create a factory.
        environment - Environment to use when creating the factory. Can be null.
        Returns:
        A non-null new instance of an ObjectFactory.
        Throws:
        NamingException - If an object factory cannot be created.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 408 / 158859456. Delta: 0.20777 с