se.jbee.inject.config
Class Options
Object
se.jbee.inject.config.Options
public final class Options
- extends Object
Options are used to model configurations of the bootstrapping process through one enum
for each configurable property (each property is identified by the enum's Class object).
Each property can be used as a set or single associate value. So a option property can describe
either alternatives where one should be chosen or options with multiple choice. It is up to the
author of the module to decide and use correctly.
Options are immutable! Use chosen(Enum) to build up sets.
- Author:
- Jan Bernitt (jan@jbee.se)
| Methods inherited from class Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
STANDARD
public static final Options STANDARD
isChosen
public <C extends Enum<C>> boolean isChosen(Class<C> property,
C option)
chosen
public <C extends Enum<C>> Options chosen(C option)
chosen
public final <C extends Enum<C>> Options chosen(C... options)
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object