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.
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 useruntimeProperties
- the JNDI name of the home interfacehomeInterfaceClass
- the class of the home interfacelogStream
- the log stream- Returns:
- the home interface (must be casted to correct type)
- Throws:
javax.naming.NamingException
- if a naming exception occurredjava.lang.InstantiationException
- if the InitialContextFactory could not be instantiatedjava.lang.NoSuchMethodException
- if the specified constructor does not existjava.lang.reflect.InvocationTargetException
- if the specified constructor could not be invokedjava.lang.IllegalAccessException
- if a method could not be accessed using introspectionFactoryException
- if the home interface could not be found or created
Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.