org.apache.commons.proxy.provider.remoting
Class SessionBeanProvider

java.lang.Object
  extended by org.apache.commons.proxy.provider.remoting.SessionBeanProvider
All Implemented Interfaces:
ObjectProvider

public class SessionBeanProvider
extends Object
implements ObjectProvider

Provides a reference to a session bean by looking up the home object and calling (via reflection) the no-argument create() method. This will work for both local and remote session beans.

Since:
1.0
Author:
James Carman

Constructor Summary
SessionBeanProvider(String jndiName, Class homeInterface)
           
SessionBeanProvider(String jndiName, Class homeInterface, Properties properties)
           
 
Method Summary
 Object getObject()
          Returns an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionBeanProvider

public SessionBeanProvider(String jndiName,
                           Class homeInterface)

SessionBeanProvider

public SessionBeanProvider(String jndiName,
                           Class homeInterface,
                           Properties properties)
Method Detail

getObject

public Object getObject()
Description copied from interface: ObjectProvider
Returns an object. Implementing classes should throw a ObjectProviderException if any problems arise while constructing/finding the object.

Specified by:
getObject in interface ObjectProvider
Returns:
the object on which the method should be called


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.