Silk DI 0.6


se.jbee.inject.config
Class Options

Object
  extended by 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)

Field Summary
static Options STANDARD
           
 
Method Summary
<C extends Enum<C>>
Options
chosen(C... options)
           
<C extends Enum<C>>
Options
chosen(C option)
           
 boolean equals(Object obj)
           
 int hashCode()
           
<C extends Enum<C>>
boolean
isChosen(Class<C> property, C option)
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STANDARD

public static final Options STANDARD
Method Detail

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

Silk DI 0.6