Compoze Software, Inc.

com.compoze.ejb
Interface IHomeInterfaceFactory

All Known Implementing Classes:
DefaultHomeInterfaceFactory

public interface IHomeInterfaceFactory

Classes that implement this interface are capable of looking up home interfaces. By looking up home interfaces based on their interface class, the same client code can be kept and the JNDI name can be switched based on the EJB container's configuration.


Method Summary
 java.lang.Object getHomeInterface(ILocator locator, ServiceRegistry registry, RuntimeProperties runtimeProperties, java.lang.Class homeInterfaceClass, LogStream logStream)
          Gets the home interface.
 

Method Detail

getHomeInterface


public java.lang.Object getHomeInterface(ILocator locator,
                                         ServiceRegistry registry,
                                         RuntimeProperties runtimeProperties,
                                         java.lang.Class homeInterfaceClass,
                                         LogStream logStream)
                                  throws javax.naming.NamingException,
                                         java.lang.InstantiationException,
                                         java.lang.NoSuchMethodException,
                                         java.lang.reflect.InvocationTargetException,
                                         java.lang.IllegalAccessException,
                                         HomeInterfaceFactory.FactoryException
Gets the home interface.
Parameters:
locator - !!!
registry - the service registry to use
runtimeProperties - the JNDI name of the home interface
homeInterfaceClass - the class of the home interface
logStream - the log stream
Returns:
the home interface (must be casted to correct type)
Throws:
javax.naming.NamingException - if a naming exception occurred
java.lang.InstantiationException - if the InitialContextFactory could not be instantiated
java.lang.NoSuchMethodException - if the specified constructor does not exist
java.lang.reflect.InvocationTargetException - if the specified constructor could not be invoked
java.lang.IllegalAccessException - if a method could not be accessed using introspection
FactoryException - if the home interface could not be found or created

Compoze Software, Inc.

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