public interface StateFactory
ObjectFactory. Classes, implementing
this interface, must be public and have public parameterless constructor.DirStateFactory,
ObjectFactoryObject getStateToBind(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws NamingException
obj - the object, for that the binding state must be retrieved. Cannot
be null.name - the name of this object, related to the nameCtx. Can be null if
not specified.nameCtx - the naming context, to that the object name is related. Can
be null if the name is related to the initial default context.environment - the properties for creating the object state. Can be
null if no properties are provided.NamingExceptionNamingManager.getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable<?, ?>),
DirectoryManager.getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable<?, ?>, javax.naming.directory.Attributes)