Compoze Software, Inc.

com.compoze.ejb
Class HomeInterfaceFactory


java.lang.Object

  |

  +--com.compoze.ejb.HomeInterfaceFactory


public class HomeInterfaceFactory
extends java.lang.Object

This class has the ability to lookup home interfaces. The JNDI names for the home interfaces are obtained from the runtime properties of the current application context, or from the runtime properties of a specific application. For non-default JNDI names they may be defined in the EJB runtime properties as follows:

 jndi. = 
 
The following is an example:
 jndi.com.compoze.ebusiness.user.IUserHome = com.compoze.solutions.harmony.user.IUserHome
 


Inner Class Summary
static class HomeInterfaceFactory.FactoryException
          This class is an exception thrown by the home interface factory that wraps the many exceptions that can occur when a home interface is looked up.
 
Constructor Summary
HomeInterfaceFactory()
           
 
Method Summary
static java.lang.Object getHomeInterface(java.lang.Class homeInterfaceClass)
          Get the home interface using the runtime properties of the current application context.
static java.lang.Object getHomeInterface(java.lang.Class homeInterfaceClass, ILocator locator)
          Get the home interface using the runtime properties of the current application context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HomeInterfaceFactory


public HomeInterfaceFactory()
Method Detail

getHomeInterface


public static java.lang.Object getHomeInterface(java.lang.Class homeInterfaceClass)
                                         throws HomeInterfaceFactory.FactoryException
Get the home interface using the runtime properties of the current application context.
Parameters:
homeInterfaceClass - the home interface class
Returns:
the home interface (must be casted to homeInterfaceClass)
Throws:
HomeInterfaceFactory.FactoryException - if the home interface could not be created

getHomeInterface


public static java.lang.Object getHomeInterface(java.lang.Class homeInterfaceClass,
                                                ILocator locator)
                                         throws HomeInterfaceFactory.FactoryException
Get the home interface using the runtime properties of the current application context.
Parameters:
homeInterfaceClass - the home interface class
locator - !!!
Returns:
the home interface (must be casted to homeInterfaceClass)
Throws:
HomeInterfaceFactory.FactoryException - if the home interface could not be created

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.