Compoze Software, Inc.

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.


Constructor Summary
DefaultHomeInterfaceFactory()
           
 
Method Summary
 java.lang.Object getHomeInterface(ILocator locator, ServiceRegistry registry, RuntimeProperties runtimeProperties, java.lang.Class homeInterfaceClass, LogStream logStream)
          Gets the home interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHomeInterfaceFactory


public DefaultHomeInterfaceFactory()
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.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 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.IllegalAccessException - if a method could not be accessed using introspection
java.lang.NoSuchMethodException - if the specified constructor does not exist
java.lang.reflect.InvocationTargetException - if the specified constructor could not be invoked
FactoryException - if the home interface could not be found or created

Compoze Software, Inc.

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