com.compoze.ejb
Class DefaultHomeInterfaceFactory
java.lang.Object
|
+--com.compoze.ejb.DefaultHomeInterfaceFactory
- All Implemented Interfaces:
- IHomeInterfaceFactory
- public class DefaultHomeInterfaceFactory
- extends java.lang.Object
- implements IHomeInterfaceFactory
This class implements the default home interface factory, which looks
up the name of the home interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHomeInterfaceFactory
public DefaultHomeInterfaceFactory()
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.IllegalAccessException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
HomeInterfaceFactory.FactoryException
- Gets the home interface.
- Specified by:
getHomeInterface
in interface IHomeInterfaceFactory
- 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.IllegalAccessException
- if a method could not be accessed using introspectionjava.lang.NoSuchMethodException
- if the specified constructor does not existjava.lang.reflect.InvocationTargetException
- if the specified constructor could not be invokedFactoryException
- if the home interface could not be found or created
Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.