|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jndi.ldap.obj.RemoteToCorbaToAttrs
public class RemoteToCorbaToAttrs
An DirStateFactory that returns an Attributes when given an RMI-IIOP object. This factory requires CORBA classes and RMI-IIOP for getting the CORBA object of an Remote object.
Try to get the CORBA object for the Remote object (using RMI-IIOP), and turn that CORBA object into attributes. Return null if the Remote objectis a JRMP implementation or JRMP stub.
The LDAP schema for storing CORBA objects is:
objectClass: top, corbaObject, corbaContainer corbaIor: IOR of CORBA object
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.naming.spi.DirStateFactory |
---|
javax.naming.spi.DirStateFactory.Result |
Constructor Summary | |
---|---|
RemoteToCorbaToAttrs()
|
Method Summary | |
---|---|
private static org.omg.CORBA.ORB |
getDefaultOrb(java.util.Hashtable env)
Return default ORB. |
java.lang.Object |
getStateToBind(java.lang.Object orig,
javax.naming.Name name,
javax.naming.Context ctx,
java.util.Hashtable env)
Always returns null. |
javax.naming.spi.DirStateFactory.Result |
getStateToBind(java.lang.Object orig,
javax.naming.Name name,
javax.naming.Context ctx,
java.util.Hashtable env,
javax.naming.directory.Attributes inAttrs)
Returns the attributes required for storing a CORBA object. |
(package private) static javax.naming.spi.DirStateFactory.Result |
remoteToCorbaToAttrs(java.rmi.Remote orig,
java.util.Hashtable env,
javax.naming.directory.Attributes inAttrs)
Gets the connected IIOP stub for Remote object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteToCorbaToAttrs()
Method Detail |
---|
public javax.naming.spi.DirStateFactory.Result getStateToBind(java.lang.Object orig, javax.naming.Name name, javax.naming.Context ctx, java.util.Hashtable env, javax.naming.directory.Attributes inAttrs) throws javax.naming.NamingException
getStateToBind
in interface javax.naming.spi.DirStateFactory
orig
- A non-null Remote object.name
- Ignoredctx
- Ignoredenv
- A possibly null environment. Used to get the ORB to use
when getting the CORBA object for the Remote object using RMI-IIOP.inAttrs
- The possibly null attributes included with the bind.
javax.naming.ConfigurationException
- If configuration problems encountered
in getting orig's CORBA object, such as RMI-IIOP not available.
javax.naming.NamingException
- If some other error occurred.static javax.naming.spi.DirStateFactory.Result remoteToCorbaToAttrs(java.rmi.Remote orig, java.util.Hashtable env, javax.naming.directory.Attributes inAttrs) throws java.lang.ClassNotFoundException, javax.naming.NamingException
java.lang.ClassNotFoundException
javax.naming.NamingException
public java.lang.Object getStateToBind(java.lang.Object orig, javax.naming.Name name, javax.naming.Context ctx, java.util.Hashtable env) throws javax.naming.NamingException
getStateToBind
in interface javax.naming.spi.StateFactory
orig
- Ignoredname
- Ignoredctx
- Ignoredenv
- Ignored
javax.naming.NamingException
- Not thrown.private static org.omg.CORBA.ORB getDefaultOrb(java.util.Hashtable env)
env
- The possibly null environment properties to use when
creating the default ORB.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |