Name

StateFactory

Synopsis

A StateFactory is used to obtain/create the state information for objects that are bound to names in the naming context. When a JNDI provider is asked to bind an object in the namespace, its implementation of the StateFactory will have its getStateToBind() method invoked to generate the object state that should be stored in the namespace.

public interface StateFactory {
// Public Instance Methods
   public abstract Object getStateToBind(Object obj, 
        javax.naming.Name name, 
        javax.naming.Context nameCtx, 
        java.util.Hashtable environment) throws NamingException;  
}

Implementations

DirStateFactory

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.