| java.lang.Object org.ow2.easybeans.enhancer.Enhancer
All known Subclasses: org.ow2.easybeans.client.ClientEnhancer, org.ow2.easybeans.tests.enhancer.ClassesEnhancer,
Enhancer | public class Enhancer (Code) | | This class is used for enhancing a set of classes (Beans like Stateless,
Stateful, MDB, etc).
author: Florent Benoit |
Enhancer | public Enhancer(ClassLoader loader, EjbJarAnnotationMetadata ejbJarAnnotationMetadata, Map<String, Object> map)(Code) | | Creates an new enhancer.
Parameters: loader - classloader where to define enhanced classes. Parameters: ejbJarAnnotationMetadata - object with references to the metadata. Parameters: map - a map allowing to give some objects to the enhancer. |
defineClass | public static void defineClass(ClassLoader loader, String className, byte[] b)(Code) | | Loads/defines a class in the current class loader.
Parameters: loader - classloader to use. Parameters: className - the name of the class Parameters: b - the bytecode of the class to define |
getClassLoader | protected ClassLoader getClassLoader()(Code) | | the classloader used by this enhancer. |
getClassReader | protected ClassReader getClassReader(ClassAnnotationMetadata classAnnotationMetadata) throws EnhancerException(Code) | | Gets a class reader for a given metadata.
Parameters: classAnnotationMetadata - given metadata classreader associated to the given metadata throws: EnhancerException - if no classWriter can be returned |
|
|