Class InstallerOptionsSupport
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.installer.option.InstallerOptionsSupport
-
- All Implemented Interfaces:
WithOptions
- Direct Known Subclasses:
AbstractJerseyInstaller
,WebListenerInstaller
,WebServletInstaller
public abstract class InstallerOptionsSupport extends java.lang.Object implements WithOptions
Base class implementing options support for installers. May be used instead of directly implementingWithOptions
.- Since:
- 20.08.2016
-
-
Constructor Summary
Constructors Constructor Description InstallerOptionsSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <V,T extends java.lang.Enum & Option>
Voption(T option)
void
setOptions(Options options)
Called before any installer method.
-
-
-
Method Detail
-
setOptions
public void setOptions(Options options)
Description copied from interface:WithOptions
Called before any installer method.- Specified by:
setOptions
in interfaceWithOptions
- Parameters:
options
- options accessor instance
-
option
protected <V,T extends java.lang.Enum & Option> V option(T option)
- Type Parameters:
V
- option value typeT
- helper type to define option- Parameters:
option
- option enum- Returns:
- assigned option value or default value
- See Also:
for more info about options
,for details
,for options example
-
-