org.apache.commons.privilizer.weave
Class Privilizer<SELF extends Privilizer<SELF>>
java.lang.Object
org.apache.commons.privilizer.weave.Privilizer<SELF>
- Direct Known Subclasses:
- FilesystemPrivilizer
public abstract class Privilizer<SELF extends Privilizer<SELF>>
- extends Object
Handles weaving of methods annotated with Privileged.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POLICY_NAME
protected static final String POLICY_NAME
- See Also:
- Constant Field Values
policy
protected final Privilizer.Policy policy
classPool
protected final javassist.ClassPool classPool
Privilizer
public Privilizer(javassist.ClassPool classPool)
Privilizer
public Privilizer(Privilizer.Policy policy,
javassist.ClassPool classPool)
generateName
protected static String generateName(String simple)
toString
protected static String toString(byte[] b)
loggingTo
public SELF loggingTo(Privilizer.Log log)
weave
public boolean weave(javassist.CtClass type)
throws javassist.NotFoundException,
IOException,
javassist.CannotCompileException,
ClassNotFoundException
- Weave the specified class.
- Parameters:
type -
- Returns:
- whether any work was done
- Throws:
javassist.NotFoundException
IOException
javassist.CannotCompileException
ClassNotFoundException
debug
protected void debug(String message,
Object... args)
verbose
protected void verbose(String message,
Object... args)
warn
protected void warn(String message,
Object... args)
getClassFileWriter
protected abstract Privilizer.ClassFileWriter getClassFileWriter()
info
protected void info(String message,
Object... args)
permitMethodWeaving
protected boolean permitMethodWeaving(AccessLevel accessLevel)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.