public class RemoveAnnotationClassTransformer extends AbstractClassTransformer implements BroadleafClassTransformer, org.springframework.beans.factory.BeanFactoryAware
| Modifier and Type | Field and Description |
|---|---|
protected String |
annotationClass |
protected org.springframework.beans.factory.config.ConfigurableBeanFactory |
beanFactory |
protected List<String> |
classNames |
protected String |
conditionalPropertyName |
protected String |
moduleName |
alreadyLoadedClasses, preLoadClassNamePatterns| Constructor and Description |
|---|
RemoveAnnotationClassTransformer(String moduleName) |
| Modifier and Type | Method and Description |
|---|---|
void |
compileJPAProperties(Properties props,
Object key) |
String |
getAnnotationClass()
The fully-qualified classname of the annotation to remove at the class and field level
|
List<String> |
getClassNames()
The list of fully-qualified classes to be impacted by this transformer
|
String |
getConditionalPropertyName()
Optional property to declare to gate the activity of this instance of the class tranformer.
|
protected Boolean |
isPropertyEnabled(String propertyName) |
void |
setAnnotationClass(String annotationClass) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setClassNames(List<String> classNames) |
void |
setConditionalPropertyName(String conditionalPropertyName) |
protected javassist.bytecode.AnnotationsAttribute |
stripAnnotation(javassist.bytecode.ConstPool constantPool,
List<?> attributes) |
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
afterPropertiesSet, setPreLoadClassNamePatternsprotected String moduleName
protected String annotationClass
protected String conditionalPropertyName
protected org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory
public RemoveAnnotationClassTransformer(String moduleName)
public void compileJPAProperties(Properties props, Object key) throws Exception
compileJPAProperties in interface BroadleafClassTransformerExceptionpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform in interface javax.persistence.spi.ClassTransformerIllegalClassFormatExceptionprotected javassist.bytecode.AnnotationsAttribute stripAnnotation(javassist.bytecode.ConstPool constantPool,
List<?> attributes)
public List<String> getClassNames()
public String getAnnotationClass()
public void setAnnotationClass(String annotationClass)
public String getConditionalPropertyName()
public void setConditionalPropertyName(String conditionalPropertyName)
Copyright © 2024. All rights reserved.