org.java.plugin.standard
public class StandardPluginLocation extends java.lang.Object implements PluginManager.PluginLocation
Inspired by Per Cederberg.
Constructor and Description |
---|
StandardPluginLocation(java.io.File file,
java.lang.String manifestPath)
Creates a new plug-in location from a jar or a zip file or a folder.
|
StandardPluginLocation(java.net.URL aContext,
java.net.URL aManifest)
Creates a new plug-in location from a given context an manifest URL's.
|
Modifier and Type | Method and Description |
---|---|
static PluginManager.PluginLocation |
create(java.io.File file)
Creates plug-in location from a given file and checks that all required
resources are available.
|
java.net.URL |
getContextLocation() |
java.net.URL |
getManifestLocation() |
java.lang.String |
toString() |
public StandardPluginLocation(java.net.URL aContext, java.net.URL aManifest)
aContext
- plug-in context URLaManifest
- plug-in manifest URLpublic StandardPluginLocation(java.io.File file, java.lang.String manifestPath) throws java.net.MalformedURLException
file
- the plug-in zip file or plug-in foldermanifestPath
- the relative manifest pathjava.net.MalformedURLException
- if the plug-in URL's couldn't be createdpublic static PluginManager.PluginLocation create(java.io.File file) throws java.net.MalformedURLException
file
- plug-in JAR or ZIP file or plug-in foldernull
if given file
doesn't points to a valid plug-in file or folderjava.net.MalformedURLException
- if the plug-in URL's couldn't be createdpublic java.net.URL getManifestLocation()
getManifestLocation
in interface PluginManager.PluginLocation
PluginManager.PluginLocation.getManifestLocation()
public java.net.URL getContextLocation()
getContextLocation
in interface PluginManager.PluginLocation
PluginManager.PluginLocation.getContextLocation()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.