net.dpml.station.console
Class StationPlugin

java.lang.Object
  extended bynet.dpml.station.console.StationPlugin
All Implemented Interfaces:
Disposable

public class StationPlugin
extends Object
implements Disposable

Plugin that handles station commands.

Version:
1.0.1
Author:
Digital Product Meta Library

Constructor Summary
StationPlugin(Logger logger, String[] args)
          Creation of a new station plugin.
 
Method Summary
 void dispose()
          Initiate disposal of the station plugin.
 URL getStorageURL(URI uri)
          Return the storage uri as a url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StationPlugin

public StationPlugin(Logger logger,
                     String[] args)
              throws Exception
Creation of a new station plugin. The station plugin handles console based commmandline interaction with the application registry and a server station.

Parameters:
logger - the assigned logging channel
args - command line arguments
Throws:
Exception - if an error occurs during plugin establishment
Method Detail

dispose

public void dispose()
Initiate disposal of the station plugin. If the pugin has established the applications registry (occurs if the station is not running as a remote process and the implementation loads the application repository).

Specified by:
dispose in interface Disposable

getStorageURL

public URL getStorageURL(URI uri)
                  throws Exception
Return the storage uri as a url.

Parameters:
uri - the uri
Returns:
the url
Throws:
Exception - if the uri could not be converted to a url