com.caucho.ejb.hessian
Class HessianModel

java.lang.Object
  extended by com.caucho.naming.AbstractModel
      extended by com.caucho.ejb.hessian.HessianModel

public class HessianModel
extends AbstractModel

JNDI context for Hessian home objects.

For now, only allow single level calls to the EJB.


Constructor Summary
HessianModel(java.lang.String prefix)
          Creates a new Hessian model
HessianModel(java.lang.String namePrefix, HessianModel root)
          Returns the root Hessian model
 
Method Summary
 AbstractModel copy()
          Creates a new instance of HessianModel.
 java.util.List list()
          Returns a list of children of the named bean.
 java.lang.Object lookup(java.lang.String name)
          Looks up the named bean.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.naming.AbstractModel
bind, create, createSubcontext, rename, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HessianModel

public HessianModel(java.lang.String prefix)
Creates a new Hessian model


HessianModel

public HessianModel(java.lang.String namePrefix,
                    HessianModel root)
Returns the root Hessian model

Method Detail

copy

public AbstractModel copy()
Creates a new instance of HessianModel.

Overrides:
copy in class AbstractModel
Returns:
a deep copy of the context

lookup

public java.lang.Object lookup(java.lang.String name)
                        throws javax.naming.NamingException
Looks up the named bean. Since we're assuming only a single level, just try to look it up directly.

Hessian to find all the valid names.

Overrides:
lookup in class AbstractModel
Parameters:
name - the segment name to lookup
Returns:
the home stub.
Throws:
javax.naming.NamingException

list

public java.util.List list()
                    throws javax.naming.NamingException
Returns a list of children of the named bean.

Overrides:
list in class AbstractModel
Returns:
array of the children.
Throws:
javax.naming.NamingException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object