org.iqual.chaplin
Class ContextFieldsValidator
java.lang.Object
org.iqual.chaplin.ContextFieldsValidator
- All Implemented Interfaces:
- ClassFileTransformer
public class ContextFieldsValidator
- extends Object
- implements ClassFileTransformer
This class validates imported context fields (those annotated by FromContext) in a class. It checks whether
there are accessors for the fields in the corresponding context class. This can be done only if the context uses static "field-to-field"
mapping. If the context uses dynamic mapping (ie. it implements ContextHandler) validation
cannot be done.
- Since:
- Mar 15, 2009 9:50:17 PM
- Author:
- Zbynek Slajchrt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextFieldsValidator
public ContextFieldsValidator(List<String> pckgs)
transform
public byte[] transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer)
throws IllegalClassFormatException
- Specified by:
transform in interface ClassFileTransformer
- Throws:
IllegalClassFormatException
Copyright © 2009 iquality.org. All Rights Reserved.