Interface NamingUtils

    • Method Detail

      • createSimpleNamingObjectFactory

        NamingObjectFactory createSimpleNamingObjectFactory​(String name,
                                                            Object value)
        Creates an instance of SimpleNamingObjectFactory
        Parameters:
        name - the name of the object. This will be ignored
        value - the object that the create method of the factory will return
        Returns:
      • createLazyInitializationNamingObjectFactory

        NamingObjectFactory createLazyInitializationNamingObjectFactory​(String name,
                                                                        String jndiName,
                                                                        boolean cacheResult)
        Parameters:
        name -
        jndiName -
        cacheResult -
        Returns:
      • createLazyNamingObjectFactory

        NamingObjectFactory createLazyNamingObjectFactory​(String name,
                                                          String jndiName,
                                                          boolean cacheResult)
        Creates an instance of JndiNamingObjectFactory
        Parameters:
        name - the name of the object
        jndiName - the jndi name of the object to create/lookup
        cacheResult - whether the result may have been cached
        Returns:
      • createCloningNamingObjectFactory

        NamingObjectFactory createCloningNamingObjectFactory​(String name,
                                                             Object value)
        Creates an instance of CloningNamingObjectFactory that will create copies of the given object.
        Parameters:
        name - the name of the object
        value - the object that will be copied when create is called
        Returns:
      • makeCopyOfObject

        Object makeCopyOfObject​(Object obj)
        Makes a new instance of the specified object. Object cannot implement Serializable
        Parameters:
        obj - a non-serializable object
        Returns:
        Throws:
        RuntimeException