public class StaticWeaveProcessor extends Object
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 and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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 toMalformedURLExceptionpublic 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 toMalformedURLExceptionpublic void setLog(Writer logWriter)
logWriter - 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
persistenceInfoPath - the path of the location containing persistence.xml, the path
must point to the root of META-INF/persistence.xmlMalformedURLExceptionpublic String getPersistenceXMLLocation()
public void setPersistenceXMLLocation(String persistenceXMLLocation)
persistenceXMLLocation - public void setPersistenceInfo(File persistenceInfoFile) throws MalformedURLException
persistenceInfoFile - the file containing persistence.xml, the file
should contain META-INF/persistence.xmlMalformedURLExceptionpublic void performWeaving()
throws URISyntaxException,
MalformedURLException,
IOException
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.