|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.enhancer.Enhancer
org.objectweb.easybeans.client.ClientEnhancer
public class ClientEnhancer
/** This enhancer is used by the client container to enhance client classes. For example, it will allow to use @EJB annotations, etc.
Field Summary | |
---|---|
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
ClientEnhancer(java.lang.ClassLoader loader,
EjbJarAnnotationMetadata ejbJarAnnotationMetadata,
java.util.Map<java.lang.String,java.lang.Object> map)
Creates an new enhancer. |
Method Summary | |
---|---|
void |
enhance()
Override the super class method by using only the injection adapter. |
static void |
enhance(java.lang.ClassLoader loader,
java.util.List<java.lang.String> classesToEnhance,
java.util.Map<java.lang.String,java.lang.Object> map)
Allow to enhance a given set of classes. |
private static void |
read(java.lang.String className,
java.lang.ClassLoader loader,
ScanClassVisitor scanVisitor,
EjbJarAnnotationMetadata ejbJarAnnotationMetadata)
Visits the given class and all available parent classes. |
Methods inherited from class org.objectweb.easybeans.enhancer.Enhancer |
---|
defineClass, enhanceSuperClass, getClassLoader, getClassReader, getEjbJarAnnotationMetadata, getMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static JLog logger
Constructor Detail |
---|
public ClientEnhancer(java.lang.ClassLoader loader, EjbJarAnnotationMetadata ejbJarAnnotationMetadata, java.util.Map<java.lang.String,java.lang.Object> map)
loader
- classloader where to define enhanced classes.ejbJarAnnotationMetadata
- object with references to the metadata.map
- a map allowing to give some objects to the enhancer.Method Detail |
---|
public static void enhance(java.lang.ClassLoader loader, java.util.List<java.lang.String> classesToEnhance, java.util.Map<java.lang.String,java.lang.Object> map) throws EnhancerException
loader
- the classloader that will be used to load the classes.classesToEnhance
- the set of classes to enhancemap
- a map allowing to give some objects to the enhancer.
EnhancerException
- if enhancer failsprivate static void read(java.lang.String className, java.lang.ClassLoader loader, ScanClassVisitor scanVisitor, EjbJarAnnotationMetadata ejbJarAnnotationMetadata) throws EnhancerException
className
- the class to visit.loader
- the classloader to use.scanVisitor
- the ASM visitor.ejbJarAnnotationMetadata
- the structure containing class metadata
EnhancerException
- if class can't be analyzed.public void enhance() throws EnhancerException
enhance
in class Enhancer
EnhancerException
- if the class can't be enhanced.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |