org.neovera.jdiablo
Class AbstractEnvironment

java.lang.Object
  extended by org.neovera.jdiablo.AbstractEnvironment
All Implemented Interfaces:
Environment
Direct Known Subclasses:
Help, SpringEnvironment

public abstract class AbstractEnvironment
extends Object
implements Environment

Noop implementation of methods in the Environment interface.


Constructor Summary
AbstractEnvironment()
           
 
Method Summary
 void initialize(Environment environment)
           
 void initialize(Environment environment, List<? extends OptionProperty> properties)
          This method is called after the start() of this environment.
 void initialize(Object target, List<? extends OptionProperty> properties)
          Called after the start() of this environment.
 boolean start()
          Start the environment.
 void stop()
          Stop the environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEnvironment

public AbstractEnvironment()
Method Detail

initialize

public void initialize(Environment environment)

start

public boolean start()
Description copied from interface: Environment
Start the environment. Any exception thrown will cause target execution to abort and stop to be called.

Specified by:
start in interface Environment
Returns:
true to continue to next environment, false to stop all environments and abort launch.

stop

public void stop()
Description copied from interface: Environment
Stop the environment.

Specified by:
stop in interface Environment

initialize

public void initialize(Environment environment,
                       List<? extends OptionProperty> properties)
Description copied from interface: Environment
This method is called after the start() of this environment. It is called for each environment that is registered - those that have already been initialized and those that are yet to be initialized. In a chained execution, this is called again when each environment is restarted and new ones are started.

Specified by:
initialize in interface Environment
Parameters:
environment - Launch environment instance.
properties - Annotated properties for this environment. NOTE: A property that is annotated will not appear in this list if the option was defined during specialization. The isValueInCommandLine() will return true if the value was specified (and set) via command line.

initialize

public void initialize(Object target,
                       List<? extends OptionProperty> properties)
Description copied from interface: Environment
Called after the start() of this environment.

Specified by:
initialize in interface Environment
Parameters:
target - The target of the launch.
properties - Annotated properties for the launch target.


Copyright © 2014 Neovera Inc.. All rights reserved.