public interface StateFactory
ObjectFactory. Classes, implementing
this interface, must be public and have public parameterless constructor.DirStateFactory,
ObjectFactory| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getStateToBind(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
Get the object state for binding.
|
java.lang.Object getStateToBind(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment) throws javax.naming.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.javax.naming.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)