Package com.sun.ejb.codegen
Class EjbClassGeneratorFactory
- java.lang.Object
-
- com.sun.ejb.codegen.EjbClassGeneratorFactory
-
- All Implemented Interfaces:
AutoCloseable
public class EjbClassGeneratorFactory extends Object implements AutoCloseable
- Author:
- David Matejcek
-
-
Constructor Summary
Constructors Constructor Description EjbClassGeneratorFactory(ClassLoader loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Class<?>ensureGenericHome(Class<?> anchorClass)Class<?>ensureRemote(String businessInterfaceName)The generated remote business interface and the client wrapper for the business interface are produced dynamically.Class<?>ensureServiceInterface(Class<?> ejbClass)protected ClassLoadergetClassLoader()
-
-
-
Constructor Detail
-
EjbClassGeneratorFactory
public EjbClassGeneratorFactory(ClassLoader loader)
-
-
Method Detail
-
getClassLoader
protected ClassLoader getClassLoader()
- Returns:
ClassLoaderowning the generated class.
-
ensureGenericHome
public Class<?> ensureGenericHome(Class<?> anchorClass) throws GeneratorException
- Throws:
GeneratorException
-
ensureServiceInterface
public Class<?> ensureServiceInterface(Class<?> ejbClass) throws GeneratorException
- Throws:
GeneratorException
-
ensureRemote
public Class<?> ensureRemote(String businessInterfaceName) throws GeneratorException
The generated remote business interface and the client wrapper for the business interface are produced dynamically. This call must be made before any EJB 3.0 Remote business interface runtime behavior is needed for a particular classloader.- Throws:
GeneratorException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-