org.neovera.jdiablo.environment
Class SpringContextProvider
java.lang.Object
org.neovera.jdiablo.environment.SpringContextProvider
- All Implemented Interfaces:
- OptionValueProvider
public class SpringContextProvider
- extends Object
- implements OptionValueProvider
Define this as an OptionValueProvider in the @UseOptionValueProviders annotation against the launchable class if
you want to provide default spring context files for the launchable using the @SpringContext annotation (also against
the launchable class). This allows overriding of individual targets using command line parameters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringContextProvider
public SpringContextProvider()
provideOptionValues
public void provideOptionValues(Class<? extends Environment> envClz,
Environment environment,
List<? extends OptionPropertyAccessor> list,
Class<? extends Launchable> launchableClass,
Launchable launchable)
- Description copied from interface:
OptionValueProvider
- Called for each environment being used.
- Specified by:
provideOptionValues in interface OptionValueProvider
- Parameters:
envClz - Class of the environment (often different from environment.getClass()).environment - Environment instance.list - List of properties relevant to the environment.launchableClass - "Main"'s class.launchable - Main instance.
provideOptionValues
public void provideOptionValues(Class<? extends Launchable> launchableClass,
Launchable launchable,
List<? extends OptionPropertyAccessor> launchProperties)
- Description copied from interface:
OptionValueProvider
- Callback to setup the target (launchable instance) with "default" options using this option
provider.
- Specified by:
provideOptionValues in interface OptionValueProvider
- Parameters:
launchableClass - Class of the "main" class (often different from launchable.getClass())launchable - Main instance.launchProperties - Option properties defined in the "main" launchable that may need to
be populated by the OptionValueProvider.
Copyright © 2014 Neovera Inc.. All rights reserved.