public interface CMPGenerator
| Modifier and Type | Method and Description |
|---|---|
Collection<File> |
cleanup()
This method is called once for each ejb module in the application
that contains CMP beans.
|
void |
generate(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor descr,
File srcout,
File classout)
This method is called once for each CMP bean of the corresponding ejb module.
|
void |
init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl ejbBundleDescriptor,
ClassLoader cl,
String bundlePathName)
Deprecated.
This method is not used by the deployment back end, and should be removed
as soon as the TestFramework is fixed.
|
void |
init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl ejbBundleDescriptor,
org.glassfish.api.deployment.DeploymentContext ctx,
String bundlePathName,
String generatedXmlsPathName)
This method is called once for each ejb module in the application
that contains CMP beans.
|
Collection |
validate(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor descr)
This method may be called once for each CMP bean of the corresponding
ejb module to perform the validation.
|
void init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl ejbBundleDescriptor,
ClassLoader cl,
String bundlePathName)
throws GeneratorException
ejbBundleDescriptor - the EjbBundleDescriptor associated with this
ejb module.cl - the ClassLoader that loaded user defined classes.bundlePathName - full path to the directory where this bundle's
files are located.GeneratorException - if there is a problem initializing bean
processing.void init(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl ejbBundleDescriptor,
org.glassfish.api.deployment.DeploymentContext ctx,
String bundlePathName,
String generatedXmlsPathName)
throws GeneratorException
ejbBundleDescriptor - the EjbBundleDescriptor associated with this
ejb module.ctx - the DeploymentContext associated with the deployment request.bundlePathName - full path to the directory where this bundle's
files are located.generatedXmlsPathName - full path to the directory where the
generated files are located.GeneratorException - if there is a problem initializing bean
processing.void generate(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor descr,
File srcout,
File classout)
throws GeneratorException
descr - the IASEjbCMPEntityDescriptor associated with this CMP bean.srcout - the location of the source files to be generated.classout - the location of the class files to be generated.GeneratorException - if there is a problem processing the bean.Collection<File> cleanup() throws GeneratorException
GeneratorException - if there is any problem.Collection validate(org.glassfish.ejb.deployment.descriptor.IASEjbCMPEntityDescriptor descr)
descr - the IASEjbCMPEntityDescriptor associated with this CMP bean.Copyright © 2013. All Rights Reserved.