public class FilterEnhancer extends Support implements ByteCodeEnhancer
| Modifier and Type | Field and Description |
|---|---|
static String |
DO_SIMPLE_TIMING |
static String |
VERBOSE_LEVEL |
static String |
VERBOSE_LEVEL_DEBUG |
static String |
VERBOSE_LEVEL_QUIET |
static String |
VERBOSE_LEVEL_VERBOSE |
static String |
VERBOSE_LEVEL_WARN |
| Constructor and Description |
|---|
FilterEnhancer(JDOMetaData metaData,
Properties settings,
PrintWriter out,
PrintWriter err)
Creates an instance of a JDO enhancer.
|
FilterEnhancer(com.sun.jdo.api.persistence.model.Model metaData,
Properties settings,
PrintWriter out,
PrintWriter err)
Creates an instance of a JDO enhancer.
|
FilterEnhancer(Properties metaData,
Properties settings,
PrintWriter out,
PrintWriter err)
Creates an instance of a JDO enhancer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
enhanceClassFile(InputStream in,
OutputStream out)
Enhances a given class according to the JDO meta-data.
|
boolean |
enhanceClassFile(InputStream inByteCode,
OutputStreamWrapper outByteCode)
Enhances a given class according to the JDO meta-data.
|
protected void |
init(JDOMetaData metaData,
Properties settings,
PrintWriter out,
PrintWriter err)
Initializes an instance of a JDO enhancer.
|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18Npublic static final String DO_SIMPLE_TIMING
public static final String VERBOSE_LEVEL
public static final String VERBOSE_LEVEL_QUIET
public static final String VERBOSE_LEVEL_WARN
public static final String VERBOSE_LEVEL_VERBOSE
public static final String VERBOSE_LEVEL_DEBUG
public FilterEnhancer(JDOMetaData metaData, Properties settings, PrintWriter out, PrintWriter err) throws EnhancerUserException, EnhancerFatalError
metaData - the JDO meta-data objectsettings - enhancement propertiesout - standard ouput stream for the enhancerEnhancerUserExceptionEnhancerFatalErrorpublic FilterEnhancer(Properties metaData, Properties settings, PrintWriter out, PrintWriter err) throws EnhancerUserException, EnhancerFatalError
metaData - the JDO meta-data propertiessettings - enhancement propertiesout - standard ouput stream for the enhancerEnhancerUserExceptionEnhancerFatalErrorpublic FilterEnhancer(com.sun.jdo.api.persistence.model.Model metaData,
Properties settings,
PrintWriter out,
PrintWriter err)
throws EnhancerUserException,
EnhancerFatalError
metaData - the JDO modelsettings - enhancement propertiesout - standard ouput stream for the enhancerEnhancerUserExceptionEnhancerFatalErrorprotected void init(JDOMetaData metaData, Properties settings, PrintWriter out, PrintWriter err) throws EnhancerUserException, EnhancerFatalError
metaData - the JDO meta-data objectsettings - enhancement propertiesout - standard ouput stream for the enhancerEnhancerUserExceptionEnhancerFatalErrorpublic boolean enhanceClassFile(InputStream inByteCode, OutputStreamWrapper outByteCode) throws EnhancerUserException, EnhancerFatalError
enhanceClassFile in interface ByteCodeEnhancerinByteCode - The byte-code of the class to be enhanced.outByteCode - The byte-code of the enhanced class.true if the class has been enhanced,
false otherwise.EnhancerUserExceptionEnhancerFatalErrorpublic boolean enhanceClassFile(InputStream in, OutputStream out) throws EnhancerUserException, EnhancerFatalError
ByteCodeEnhancerenhanceClassFile in interface ByteCodeEnhancerin - 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 © 2013. All Rights Reserved.