JPF 1.5.1

org.java.plugin.boot
Class ApplicationPlugin

java.lang.Object
  extended by org.java.plugin.Plugin
      extended by org.java.plugin.boot.ApplicationPlugin

public abstract class ApplicationPlugin
extends Plugin

This class is for "application" plug-ins - a JPF based program entry point. The class is part of "standard boot scenario" when DefaultApplicationInitializer is used for application initializing.

Version:
$Id$

Field Summary
 
Fields inherited from class org.java.plugin.Plugin
log
 
Constructor Summary
ApplicationPlugin()
           
 
Method Summary
protected abstract  Application initApplication(ExtendedProperties config, java.lang.String[] args)
          This method should instantiate and configure application instance that will then be started.
 
Methods inherited from class org.java.plugin.Plugin
doStart, doStop, getDescriptor, getManager, isActive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationPlugin

public ApplicationPlugin()
Method Detail

initApplication

protected abstract Application initApplication(ExtendedProperties config,
                                               java.lang.String[] args)
                                        throws java.lang.Exception
This method should instantiate and configure application instance that will then be started.

Parameters:
config - application configuration data, see DefaultApplicationInitializer for description on how plug-in configuration data composed from boot.properties
args - command line arguments as they passed to program main method
Returns:
initialized ready to start application instance
Throws:
java.lang.Exception - if any error has occurred during application initializing

JPF 1.5.1

Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.