|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.common.extensibility.jpa.copy.AnnotationsCopyClassTransformer
DirectCopyClassTransformer instead
@Deprecated public class AnnotationsCopyClassTransformer
This class transformer will copy fields, methods, and interface definitions from a source class to a target class, based on the xformTemplates map. It will fail if it encouters any duplicate definitions.
| Field Summary | |
|---|---|
protected SupportLogger |
logger
Deprecated. |
protected String |
moduleName
Deprecated. |
protected static List<String> |
transformedMethods
Deprecated. |
protected Map<String,String> |
xformTemplates
Deprecated. |
| Constructor Summary | |
|---|---|
AnnotationsCopyClassTransformer(String moduleName)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
compileJPAProperties(Properties props,
Object key)
Deprecated. |
protected String |
getImplementationType(String className)
Deprecated. This method will do its best to return an implementation type for a given classname. |
Map<String,String> |
getXformTemplates()
Deprecated. |
protected String |
methodDescription(javassist.CtMethod method)
Deprecated. |
void |
setXformTemplates(Map<String,String> xformTemplates)
Deprecated. |
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SupportLogger logger
protected String moduleName
protected Map<String,String> xformTemplates
protected static List<String> transformedMethods
| Constructor Detail |
|---|
public AnnotationsCopyClassTransformer(String moduleName)
| Method Detail |
|---|
public void compileJPAProperties(Properties props,
Object key)
throws Exception
compileJPAProperties in interface BroadleafClassTransformerException
public byte[] transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer)
throws IllegalClassFormatException
transform in interface javax.persistence.spi.ClassTransformerIllegalClassFormatExceptionprotected String getImplementationType(String className)
protected String methodDescription(javassist.CtMethod method)
public Map<String,String> getXformTemplates()
public void setXformTemplates(Map<String,String> xformTemplates)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||