| java.lang.Object org.java.plugin.standard.StandardPluginLocation
StandardPluginLocation | public class StandardPluginLocation implements PluginLocation(Code) | | A standard implementation of plug-in location interface. It may be used to
create plug-in locations from JAR or ZIP files of plug-in folders, or from
any URL pointers.
Inspired by Per Cederberg.
version: $Id$ |
StandardPluginLocation | public StandardPluginLocation(URL aContext, URL aManifest)(Code) | | Creates a new plug-in location from a given context an manifest URL's.
Parameters: aContext - plug-in context URL Parameters: aManifest - plug-in manifest URL |
StandardPluginLocation | public StandardPluginLocation(File file, String manifestPath) throws MalformedURLException(Code) | | Creates a new plug-in location from a jar or a zip file or a folder. This
plug-in manifest file path specified is relative to the root directory of
the jar or zip file or given folder.
Parameters: file - the plug-in zip file or plug-in folder Parameters: manifestPath - the relative manifest path throws: MalformedURLException - if the plug-in URL's couldn't be created |
create | public static PluginLocation create(File file) throws MalformedURLException(Code) | | Creates plug-in location from a given file and checks that all required
resources are available. Before creating location object, this method
probes given ZIP file of folder for presence of any of the following
files:
- /plugin.xml
- /plugin-fragment.xml
- /META-INF/plugin.xml
- /META-INF/plugin-fragment.xml
If any of those files present, a new plug-in location object created and
returned.
Parameters: file - plug-in JAR or ZIP file or plug-in folder created new plug-in location or null if given filedoesn't points to a valid plug-in file or folder throws: MalformedURLException - if the plug-in URL's couldn't be created |
getContextLocation | public URL getContextLocation()(Code) | | See Also: org.java.plugin.PluginManager.PluginLocation.getContextLocation |
getManifestLocation | public URL getManifestLocation()(Code) | | See Also: org.java.plugin.PluginManager.PluginLocation.getManifestLocation |
|
|