|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neovera.jdiablo.AbstractEnvironment
org.neovera.jdiablo.environment.SpringEnvironment
public class SpringEnvironment
Bootstraps Spring and provides option values who's fields are annotated with PropertyPlaceholder (provided there is a bean of the type PropertyPlaceholderProvider in Spring). If your context has an instance of AutowiredAnnotationBeanPostProcessor all fields marked with the @Inject annotation are automatically set. In addition, if the Launchable class implements the BeanFactoryAware interface, the bean factory is also set.
| Constructor Summary | |
|---|---|
SpringEnvironment()
|
|
| Method Summary | |
|---|---|
String[] |
getSpringContextFiles()
|
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. |
void |
setSpringContextFiles(String[] springContextFiles)
|
boolean |
start()
Start the environment. |
void |
stop()
Stop the environment. |
| Methods inherited from class org.neovera.jdiablo.AbstractEnvironment |
|---|
initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringEnvironment()
| Method Detail |
|---|
public String[] getSpringContextFiles()
public void setSpringContextFiles(String[] springContextFiles)
public boolean start()
Environment
start in interface Environmentstart in class AbstractEnvironmentpublic void stop()
Environment
stop in interface Environmentstop in class AbstractEnvironment
public void initialize(Environment environment,
List<? extends OptionProperty> properties)
Environment
initialize in interface Environmentinitialize in class AbstractEnvironmentenvironment - 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.
public void initialize(Object target,
List<? extends OptionProperty> properties)
Environment
initialize in interface Environmentinitialize in class AbstractEnvironmenttarget - The target of the launch.properties - Annotated properties for the launch target.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||