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
| Modifier and Type | Field and Description |
|---|---|
| private ClassLoader | |
| private int | |
| private Writer | |
| private static final int | |
| private URL | |
| private String | |
| private URL | |
| private URL |
| Access | Constructor and Description |
|---|---|
| public | StaticWeaveProcessor(String
the name of the location to be weaved source, String the name of the location to be weaved to target)Constructs an instance of StaticWeaveProcessor |
| public | StaticWeaveProcessor(File
the File object of the source to be weaved source, File the File object of the target to be weaved to target)Constructs an instance of StaticWeaveProcessor |
| public | StaticWeaveProcessor(URL
the URL of the source to be weaved source, URL the URL of the target to be weaved to target)Constructs an instance of StaticWeaveProcessor |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public String | |
| private URL[] | |
| private boolean | |
| public void | performWeaving()
This method performs weaving function on the class individually from the specified source. |
| private void | preProcess()
INTERNAL: This method perform all necessary steps(verification, pre-build the target directory) prior to the invocation of the weaving function. |
| private void | |
| public void | |
| public void | |
| public void | setLogLevel(int
- the integer value of log level. default is OFF. level)The method allows user to define nine levels EclipseLink logging. |
| public void | setPersistenceInfo(URL
the URL of the location containing persistence.xml, the URL
must point to the root of META-INF/persistence.xml persistenceInfo)Set an explicitly identified URL of the location containing persistence.xml. |
| public void | setPersistenceInfo(String
the path of the location containing persistence.xml, the path
must point to the root of META-INF/persistence.xml persistenceInfoPath)Set an explicitly identified the location containing persistence.xml. |
| public void | setPersistenceInfo(File
the file containing persistence.xml, the file
should contain META-INF/persistence.xml persistenceInfoFile)Set an explicitly identified the location containing persistence.xml. |
| public void | setPersistenceXMLLocation(String persistenceXMLLocation)
Set a specific location to look for persistence.xml by default we will look in META-INF/persistence.xml |
| classLoader | back to summary |
|---|---|
| private ClassLoader classLoader | |
| logLevel | back to summary |
|---|---|
| private int logLevel | |
| logWriter | back to summary |
|---|---|
| private Writer logWriter | |
| NUMBER_OF_BYTES | back to summary |
|---|---|
| private static final int NUMBER_OF_BYTES | |
| persistenceInfo | back to summary |
|---|---|
| private URL persistenceInfo | |
| persistenceXMLLocation | back to summary |
|---|---|
| private String persistenceXMLLocation | |
| source | back to summary |
|---|---|
| private URL source | |
| target | back to summary |
|---|---|
| private URL target | |
| StaticWeaveProcessor | back to summary |
|---|---|
| public StaticWeaveProcessor(String source, String target) throws MalformedURLException Constructs an instance of StaticWeaveProcessor | |
| StaticWeaveProcessor | back to summary |
|---|---|
| public StaticWeaveProcessor(File source, File target) throws MalformedURLException Constructs an instance of StaticWeaveProcessor | |
| StaticWeaveProcessor | back to summary |
|---|---|
| public StaticWeaveProcessor(URL source, URL target) Constructs an instance of StaticWeaveProcessor | |
| getDirectoryFromEntryName | back to summary |
|---|---|
| public static String getDirectoryFromEntryName(String entryName) | |
| getPersistenceXMLLocation | back to summary |
|---|---|
| public String getPersistenceXMLLocation() | |
| getURLs | back to summary |
|---|---|
| private URL[] getURLs() Generate URL array for specified source and persistenceinfo. | |
| isDirectory | back to summary |
|---|---|
| private boolean isDirectory(URL url) throws URISyntaxException Determine whether or not the URL is pointing to directory. | |
| performWeaving | back to summary |
|---|---|
| public void performWeaving() throws URISyntaxException, MalformedURLException, IOException This method performs weaving function on the class individually from the specified source. | |
| preProcess | back to summary |
|---|---|
| private void preProcess() throws URISyntaxException, MalformedURLException INTERNAL: This method perform all necessary steps(verification, pre-build the target directory) prior to the invocation of the weaving function. | |
| process | back to summary |
|---|---|
| private void process() throws IOException, URISyntaxException INTERNAL: The method performs weaving function | |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(ClassLoader classLoader) Set the user classloader. | |
| setLog | back to summary |
|---|---|
| public void setLog(Writer logWriter) The method allows user to specify the output for the log message.
| |
| setLogLevel | back to summary |
|---|---|
| public void setLogLevel(int level) The method allows user to define nine levels EclipseLink logging.
| |
| setPersistenceInfo | back to summary |
|---|---|
| public void setPersistenceInfo(URL persistenceInfo) Set an explicitly identified URL of the location containing persistence.xml.
| |
| setPersistenceInfo | back to summary |
|---|---|
| public void setPersistenceInfo(String persistenceInfoPath) throws MalformedURLException Set an explicitly identified the location containing persistence.xml.
| |
| setPersistenceInfo | back to summary |
|---|---|
| public void setPersistenceInfo(File persistenceInfoFile) throws MalformedURLException Set an explicitly identified the location containing persistence.xml.
| |
| setPersistenceXMLLocation | back to summary |
|---|---|
| public void setPersistenceXMLLocation(String persistenceXMLLocation) Set a specific location to look for persistence.xml by default we will look in META-INF/persistence.xml | |