Silk DI 0.6


se.jbee.inject.bind
Class Binder.TypedElementBinder<E>

Object
  extended by se.jbee.inject.bind.Binder.TypedBinder<E[]>
      extended by se.jbee.inject.bind.Binder.TypedElementBinder<E>
Enclosing class:
Binder

public static class Binder.TypedElementBinder<E>
extends Binder.TypedBinder<E[]>

This kind of bindings actually re-map the []-type so that the automatic behavior of returning all known instances of the element type will no longer be used whenever the bind made applies.

Author:
Jan Bernitt (jan@jbee.se)

Field Summary
 
Fields inherited from class se.jbee.inject.bind.Binder.TypedBinder
resource
 
Constructor Summary
Binder.TypedElementBinder(Bind bind, Instance<E[]> instance)
           
 
Method Summary
 void toElements(E... constants)
           
 void toElements(E c1)
           
 void toElements(E c1, E c2)
           
 void toElements(E c1, E c2, E c3)
           
 void toElements(Parameter<? extends E>... parameters)
           
 void toElements(Parameter<? extends E> p1)
           
 void toElements(Parameter<? extends E> p1, Parameter<? extends E> p2)
           
 void toElements(Parameter<? extends E> p1, Parameter<? extends E> p2, Parameter<? extends E> p3)
           
 
Methods inherited from class se.jbee.inject.bind.Binder.TypedBinder
bind, expand, getType, on, onMulti, to, to, to, to, to, to, to, to, to, to, to, to, to, to, toConstructor, toConstructor, toConstructor, toMacro, toParametrized, toSupplier
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Binder.TypedElementBinder

Binder.TypedElementBinder(Bind bind,
                          Instance<E[]> instance)
Method Detail

toElements

public void toElements(Parameter<? extends E> p1)

toElements

public void toElements(Parameter<? extends E> p1,
                       Parameter<? extends E> p2)

toElements

public void toElements(Parameter<? extends E> p1,
                       Parameter<? extends E> p2,
                       Parameter<? extends E> p3)

toElements

public void toElements(Parameter<? extends E>... parameters)

toElements

public void toElements(E c1)

toElements

public void toElements(E c1,
                       E c2)

toElements

public void toElements(E c1,
                       E c2,
                       E c3)

toElements

public void toElements(E... constants)

Silk DI 0.6