Class StandardPluginLocation

java.lang.Object
org.java.plugin.standard.StandardPluginLocation
All Implemented Interfaces:
PluginManager.PluginLocation

public class StandardPluginLocation extends Object implements PluginManager.PluginLocation
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$
  • Constructor Details

    • StandardPluginLocation

      public StandardPluginLocation(URL aContext, URL aManifest)
      Creates a new plug-in location from a given context an manifest URL's.
      Parameters:
      aContext - plug-in context URL
      aManifest - plug-in manifest URL
    • StandardPluginLocation

      public StandardPluginLocation(File file, String manifestPath) throws MalformedURLException
      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
      manifestPath - the relative manifest path
      Throws:
      MalformedURLException - if the plug-in URL's couldn't be created
  • Method Details