org.globus.wsrf.jndi
Class BeanFactory

java.lang.Object
  extended byorg.apache.naming.factory.BeanFactory
      extended byorg.globus.wsrf.jndi.BasicBeanFactory
          extended byorg.globus.wsrf.jndi.BeanFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

public class BeanFactory
extends BasicBeanFactory


Nested Class Summary
private  class BeanFactory.GetInstanceAction
           
 
Field Summary
 
Fields inherited from class org.globus.wsrf.jndi.BasicBeanFactory
i18n
 
Constructor Summary
BeanFactory()
           
 
Method Summary
private  java.lang.Object getInstance(org.apache.axis.MessageContext msgCtx, java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
           
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
          Create a new Bean instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanFactory

public BeanFactory()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable environment)
                                   throws javax.naming.NamingException
Create a new Bean instance. If obj is of type ServiceResourceRef the bean will be created and initialized with security credentials associated with the current thread if the service associated with this bean has a security descriptor configured.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Overrides:
getObjectInstance in class BasicBeanFactory
Throws:
javax.naming.NamingException

getInstance

private java.lang.Object getInstance(org.apache.axis.MessageContext msgCtx,
                                     java.lang.Object obj,
                                     javax.naming.Name name,
                                     javax.naming.Context nameCtx,
                                     java.util.Hashtable environment)
                              throws javax.naming.NamingException
Throws:
javax.naming.NamingException