DirContext
implementations.
This class is an extension of NamingManager. It contains methods
for use by service providers for accessing object factories and
state factories, and for getting continuation contexts for
supporting federation.
DirectoryManager is safe for concurrent access by multiple threads.
Except as otherwise noted,
a Name, Attributes, or environment parameter
passed to any method 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.
DirObjectFactory, DirStateFactory
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static DirContext | Returns: A non-nullDirContext object for continuing the operation.The non-null exception that triggered this continuation. cpe)Creates a context in which to continue a |
| public static Object | Returns: An object created usingrefInfo and attrs; or
refInfo if an object cannot be created by
a factory.The possibly null object for which to create an object. refInfo, Name The name of this object relative to name, Context nameCtx.
Specifying a name is optional; if it is
omitted, name should be null.The context relative to which the nameCtx, Hashtable<?, ?> name
parameter is specified. If null, name is
relative to the default initial context.The possibly null environment to
be used in the creation of the object factory and the object. environment, Attributes The possibly null attributes associated with refInfo.
This might not be the complete set of attributes for refInfo;
you might be able to read more attributes from the directory. attrs)Creates an instance of an object for the specified object, attributes, and environment. |
| public static DirStateFactory. | Returns: A non-null DirStateFactory.Result containing the object and attributes to be bound. If no state factory returns a non-null answer, the result will contain the object (obj) itself with the original attributes.The non-null object for which to get state to bind. obj, Name The name of this object relative to name, Context nameCtx,
or null if no name is specified.The context relative to which the nameCtx, Hashtable<?, ?> name
parameter is specified, or null if name is
relative to the default initial context.The possibly null environment to
be used in the creation of the state factory and
the object's state. environment, Attributes The possibly null Attributes that is to be bound with the
object. attrs)Retrieves the state of an object for binding when given the original object and its attributes. |
| DirectoryManager | back to summary |
|---|---|
| pack-priv DirectoryManager() | |
| getContinuationDirContext | back to summary |
|---|---|
| public static DirContext getContinuationDirContext(CannotProceedException cpe) throws NamingException Creates a context in which to continue a
| |
| getObjectInstance | back to summary |
|---|---|
| public static Object getObjectInstance(Object refInfo, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs) throws Exception Creates an instance of an object for the specified object, attributes, and environment.
This method is the same as
DirContext interface
should use this method, not NamingManager.getObjectInstance().
| |
| getStateToBind | back to summary |
|---|---|
| public static DirStateFactory. Retrieves the state of an object for binding when given the original object and its attributes.
This method is like
DirContext interface
should use this method, not NamingManager.getStateToBind().
See NamingManager.getStateToBind() for a description of how the list of state factories to be tried is determined.
The object returned by this method is owned by the caller.
The implementation will not subsequently modify it.
It will contain either a new
| |