|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.enhancer.util.Assertion
com.sun.jdo.api.persistence.enhancer.util.Support
com.sun.jdo.api.persistence.enhancer.FilterEnhancer
public class FilterEnhancer
Implements a JDO enhancer as a byte-code filtering tool.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
timer |
| Constructor Summary | |
|---|---|
FilterEnhancer(JDOMetaData metaData,
Properties settings,
PrintWriter out,
PrintWriter err)
Creates an instance of a JDO enhancer. |
|
FilterEnhancer(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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N |
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Assertion |
|---|
affirm, affirm, affirm, affirm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
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 enhancer
EnhancerUserException
EnhancerFatalError
public 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 enhancer
EnhancerUserException
EnhancerFatalError
public FilterEnhancer(Model metaData,
Properties settings,
PrintWriter out,
PrintWriter err)
throws EnhancerUserException,
EnhancerFatalError
metaData - the JDO modelsettings - enhancement propertiesout - standard ouput stream for the enhancer
EnhancerUserException
EnhancerFatalError| Method Detail |
|---|
protected 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 enhancer
EnhancerUserException
EnhancerFatalError
public 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.
EnhancerUserException
EnhancerFatalError
public boolean enhanceClassFile(InputStream in,
OutputStream out)
throws EnhancerUserException,
EnhancerFatalError
ByteCodeEnhancer
enhanceClassFile 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.
EnhancerUserException
EnhancerFatalError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||