|
|||||||||
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(File source,
File target)
Constructs an instance of StaticWeaveProcessor |
|
StaticWeaveProcessor(String source,
String target)
Constructs an instance of StaticWeaveProcessor |
|
StaticWeaveProcessor(URL source,
URL target)
Constructs an instance of StaticWeaveProcessor |
Method Summary | |
---|---|
static String |
getDirectoryFromEntryName(String entryName)
|
String |
getPersistenceXMLLocation()
|
void |
performWeaving()
This method performs weaving function on the class individually from the specified source. |
void |
setClassLoader(ClassLoader classLoader)
Set the user classloader. |
void |
setLog(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(File persistenceInfoFile)
Set an explicitly identified the location containing persistence.xml. |
void |
setPersistenceInfo(String persistenceInfoPath)
Set an explicitly identified the location containing persistence.xml. |
void |
setPersistenceInfo(URL persistenceInfo)
Set an explicitly identified URL of the location containing persistence.xml. |
void |
setPersistenceXMLLocation(String persistenceXMLLocation)
Set a specific location to look for persistence.xml by default we will look in META-INF/persistence.xml |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticWeaveProcessor(String source, String target) throws MalformedURLException
source
- the name of the location to be weavedtarget
- the name of the location to be weaved to
MalformedURLException
public StaticWeaveProcessor(File source, File target) throws MalformedURLException
source
- the File object of the source to be weavedtarget
- the File object of the target to be weaved to
MalformedURLException
public StaticWeaveProcessor(URL source, URL target)
source
- the URL of the source to be weavedtarget
- the URL of the target to be weaved toMethod Detail |
---|
public void setLog(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(ClassLoader classLoader)
public void setPersistenceInfo(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(String persistenceInfoPath) throws MalformedURLException
persistenceinfo
- the path of the location containing persistence.xml, the path
must point to the root of META-INF/persistence.xml
MalformedURLException
public String getPersistenceXMLLocation()
public void setPersistenceXMLLocation(String persistenceXMLLocation)
persistenceXMLLocation
- public void setPersistenceInfo(File persistenceInfoFile) throws MalformedURLException
persistenceinfo
- the file containing persistence.xml, the file
should contain META-INF/persistence.xml
MalformedURLException
public void performWeaving() throws URISyntaxException, MalformedURLException, IOException
Exception.
URISyntaxException
MalformedURLException
IOException
public static String getDirectoryFromEntryName(String entryName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |