Silk DI 0.6


se.jbee.inject.bootstrap
Interface PresetModule<T>

Type Parameters:
T - The type of the preset value
All Known Implementing Classes:
BinderModuleWith

public interface PresetModule<T>

A PresetModule is an extension to a usual Module that depends on *one* of the values that have been preset.

Author:
Jan Bernitt (jan@jbee.se)
See Also:
Module

Method Summary
 void declare(Bindings bindings, T preset)
           
 

Method Detail

declare

void declare(Bindings bindings,
             T preset)
Parameters:
bindings - use to declare made bound within this Module.
preset - The preset value (chosen by the value's type from the set of all preset values). This can very well be null in case no such type value has been preset.

Silk DI 0.6