|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPreverifier
The IPreverifier
interface represents a preverifier instance
that is required for preverification support on a IMTJProject
.
The preverification process will make a series of checks on the Java
.class
files, generated after the compilation of the source code
of a IMTJProject
or available inside a .jar
file. The
preverifier will annotate these files, and save them on a previously
specified folder for use on the final deployed Application Package.
All implementations of this interface are internal, and should
not be accessed directly by clients(compatibility will not be
maintained). To create a new instance of a preverifier, clients must
use MTJCore.createPreverifier(String, Object)
informing the type
of the preverifier to be created and any parameter that is required by that
specific preverifier type.
Currently, only two types of preverifiers are supported:
PREVERIFIER_STANDARD
constant.PREVERIFIER_UNKNOWN
constant.For more information on the preverification process, please visit CLDC-1.0 and CLDC-1.1
MTJCore.createPreverifier(String, Object)
Field Summary | |
---|---|
static String |
PREVERIFIER_STANDARD
Constant that represents the standard preverifier |
static String |
PREVERIFIER_UNKNOWN
Constant that represents an unknown preverifier |
Fields inherited from interface org.eclipse.mtj.core.persistence.IPersistable |
---|
CLASS_PERSISTABLE_ATTRIBUTE, ID_PERSISTABLE_ATTRIBUTE, KEY_PERSISTABLE_ATTRIBUTE, PROPERTY_PERSISTABLE_ELEMENT, REFID_PERSISTABLE_ATTRIBUTE, VALUE_PERSISTABLE_ATTRIBUTE |
Method Summary | |
---|---|
File |
getPreverifierExecutable()
Return the file that is the preverifier binary, or null if
no preverifier was specified. |
IPreverificationError[] |
preverify(IMTJProject mtjProject,
IResource[] toVerify,
IFolder outputFolder,
IProgressMonitor monitor)
Launch the preverification process on the specified resources from the given IMTJProject . |
IPreverificationError[] |
preverifyJarFile(IMTJProject mtjProject,
File jarFile,
IFolder outputFolder,
IProgressMonitor monitor)
Launch the preverification process on the classes available in the specified jar file from the given IMTJProject . |
Methods inherited from interface org.eclipse.mtj.core.persistence.IPersistable |
---|
loadUsing, storeUsing |
Field Detail |
---|
static final String PREVERIFIER_STANDARD
static final String PREVERIFIER_UNKNOWN
Method Detail |
---|
IPreverificationError[] preverify(IMTJProject mtjProject, IResource[] toVerify, IFolder outputFolder, IProgressMonitor monitor) throws CoreException
IMTJProject
.
mtjProject
- The project in which the resources to be preverified
reside.toVerify
- The resources to be preverified.outputFolder
- The folder into which the output is to be placed.monitor
- a progress monitor, or null
if progress
reporting is not desired.
CoreException
- if this method fails. Reasons include:
IPreverificationError[] preverifyJarFile(IMTJProject mtjProject, File jarFile, IFolder outputFolder, IProgressMonitor monitor) throws CoreException
IMTJProject
.
Rather than trying to preverify a jar file, the file must be expanded first and then we'll preverify against the expanded classes.
mtjProject
- The project in which the .jar
file to be
preverified reside.jarFile
- the .jar
file to be preverified.outputFolder
- The folder into which the output is to be placed.monitor
- a progress monitor, or null
if progress
reporting is not desired
CoreException
- if this method fails. Reasons include:
.jar
file could not be expanded.IOException
File getPreverifierExecutable()
null
if
no preverifier was specified.
If this method return null
, MTJ will automatically assume
the use of the default preverifier configured in the UI.
null
if no
preverifier was specified
|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |