|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.tools.weaving.jpa.StaticWeaveProcessor
public class StaticWeaveProcessor
Description: The StaticWeaveProcessor controls the static weaving process. It is invoked by both the command line StaticWeave class and the StaticWeaveAntTask.
Responsibilities: Process the source classes, performs weaving as necessary out outputs to the target
Constructor Summary | |
---|---|
StaticWeaveProcessor(java.io.File source,
java.io.File target)
Constructs an instance of StaticWeaveProcessor |
|
StaticWeaveProcessor(java.lang.String source,
java.lang.String target)
Constructs an instance of StaticWeaveProcessor |
|
StaticWeaveProcessor(java.net.URL source,
java.net.URL target)
Constructs an instance of StaticWeaveProcessor |
Method Summary | |
---|---|
static java.lang.String |
getDirectoryFromEntryName(java.lang.String entryName)
|
void |
performWeaving()
This method performs weaving function on the class individually from the specified source. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Set the user classloader. |
void |
setLog(java.io.Writer logWriter)
The method allows user to specify the output for the log message. |
void |
setLogLevel(int level)
The method allows user to define nine levels EclipseLink logging. |
void |
setPersistenceInfo(java.io.File persistenceInfoFile)
Set an explicitly identified the location containing persistence.xml. |
void |
setPersistenceInfo(java.lang.String persistenceInfoPath)
Set an explicitly identified the location containing persistence.xml. |
void |
setPersistenceInfo(java.net.URL persistenceInfo)
Set an explicitly identified URL of the location containing persistence.xml. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticWeaveProcessor(java.lang.String source, java.lang.String target) throws java.net.MalformedURLException
source
- the name of the location to be weavedtarget
- the name of the location to be weaved to
java.net.MalformedURLException
public StaticWeaveProcessor(java.io.File source, java.io.File target) throws java.net.MalformedURLException
source
- the File object of the source to be weavedtarget
- the File object of the target to be weaved to
java.net.MalformedURLException
public StaticWeaveProcessor(java.net.URL source, java.net.URL target)
source
- the URL of the source to be weavedtarget
- the URL of the target to be weaved toMethod Detail |
---|
public void setLog(java.io.Writer logWriter)
log
- writer - the location where the log message writes to. the default value is standard outpublic void setLogLevel(int level)
level
- - the integer value of log level. default is OFF.public void setClassLoader(java.lang.ClassLoader classLoader)
public void setPersistenceInfo(java.net.URL persistenceInfo)
persistenceInfo
- the URL of the location containing persistence.xml, the URL
must point to the root of META-INF/persistence.xmlpublic void setPersistenceInfo(java.lang.String persistenceInfoPath) throws java.net.MalformedURLException
persistenceinfo
- the path of the location containing persistence.xml, the path
must point to the root of META-INF/persistence.xml
java.net.MalformedURLException
public void setPersistenceInfo(java.io.File persistenceInfoFile) throws java.net.MalformedURLException
persistenceinfo
- the file containing persistence.xml, the file
should contain META-INF/persistence.xml
java.net.MalformedURLException
public void performWeaving() throws java.net.URISyntaxException, java.net.MalformedURLException, java.io.IOException
Exception.
java.net.URISyntaxException
java.net.MalformedURLException
java.io.IOException
public static java.lang.String getDirectoryFromEntryName(java.lang.String entryName)
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |