public class EnhancerFilter extends Support implements ClassFileEnhancer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DO_TIMING_STATISTICS |
static java.lang.String |
DUMP_CLASS |
static java.lang.String |
NO_ANNOTATE |
static java.lang.String |
NO_AUGMENT |
static java.lang.String |
VERBOSE_LEVEL |
static java.lang.String |
VERBOSE_LEVEL_DEBUG |
static java.lang.String |
VERBOSE_LEVEL_QUIET |
static java.lang.String |
VERBOSE_LEVEL_VERBOSE |
static java.lang.String |
VERBOSE_LEVEL_WARN |
| Constructor and Description |
|---|
EnhancerFilter(EnhancerMetaData metaData,
java.util.Properties settings,
java.io.PrintWriter out,
java.io.PrintWriter err)
Creates an instance of a JDO enhancer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
enhanceClassFile(java.io.InputStream in,
java.io.OutputStream out)
Enhances a given class according to the JDO meta-data.
|
boolean |
enhanceClassFile(java.io.InputStream inClassFile,
OutputStreamWrapper outClassFile)
Enhances a given class according to the JDO meta-data.
|
protected void |
init(EnhancerMetaData metaData,
java.util.Properties settings,
java.io.PrintWriter out,
java.io.PrintWriter err)
Initializes an instance of a JDO enhancer.
|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18Npublic static final java.lang.String DO_TIMING_STATISTICS
public static final java.lang.String DUMP_CLASS
public static final java.lang.String NO_AUGMENT
public static final java.lang.String NO_ANNOTATE
public static final java.lang.String VERBOSE_LEVEL
public static final java.lang.String VERBOSE_LEVEL_QUIET
public static final java.lang.String VERBOSE_LEVEL_WARN
public static final java.lang.String VERBOSE_LEVEL_VERBOSE
public static final java.lang.String VERBOSE_LEVEL_DEBUG
public EnhancerFilter(EnhancerMetaData metaData, java.util.Properties settings, java.io.PrintWriter out, java.io.PrintWriter err) throws EnhancerUserException, EnhancerFatalError
metaData - the JDO meta-data objectsettings - enhancement propertiesout - standard ouput stream for the enhancerEnhancerUserExceptionEnhancerFatalErrorprotected void init(EnhancerMetaData metaData, java.util.Properties settings, java.io.PrintWriter out, java.io.PrintWriter err) throws EnhancerUserException, EnhancerFatalError
metaData - the JDO meta-data objectsettings - enhancement propertiesout - standard ouput stream for the enhancerEnhancerUserExceptionEnhancerFatalErrorpublic boolean enhanceClassFile(java.io.InputStream inClassFile,
OutputStreamWrapper outClassFile)
throws EnhancerUserException,
EnhancerFatalError
enhanceClassFile in interface ClassFileEnhancerinClassFile - The byte-code of the class to be enhanced.outClassFile - The byte-code of the enhanced class.true if the class has been enhanced,
false otherwise.EnhancerUserExceptionEnhancerFatalErrorpublic boolean enhanceClassFile(java.io.InputStream in,
java.io.OutputStream out)
throws EnhancerUserException,
EnhancerFatalError
ClassFileEnhancerenhanceClassFile in interface ClassFileEnhancerin - The byte-code of the class to be enhanced.out - The byte-code of the enhanced class.true if the class has been enhanced,
false otherwise.EnhancerUserExceptionEnhancerFatalErrorCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.