|
JPF 1.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.java.plugin.standard.StandardPluginLocation
public class StandardPluginLocation
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.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StandardPluginLocation(java.net.URL aContext,
java.net.URL aManifest)
aContext - plug-in context URLaManifest - plug-in manifest URL
public 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 path
java.net.MalformedURLException - if the plug-in URL's couldn't be created| Method Detail |
|---|
public static PluginManager.PluginLocation create(java.io.File file)
throws java.net.MalformedURLException
file - plug-in JAR or ZIP file or plug-in folder
null if given file
doesn't points to a valid plug-in file or folder
java.net.MalformedURLException - if the plug-in URL's couldn't be createdpublic java.net.URL getManifestLocation()
getManifestLocation in interface PluginManager.PluginLocationPluginManager.PluginLocation.getManifestLocation()public java.net.URL getContextLocation()
getContextLocation in interface PluginManager.PluginLocationPluginManager.PluginLocation.getContextLocation()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
JPF 1.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||