Silk DI 0.6


se.jbee.inject.util
Class Producible<T>

Object
  extended by se.jbee.inject.util.Producible<T>
All Implemented Interfaces:
Typed<T>

public final class Producible<T>
extends Object
implements Typed<T>


Field Summary
 Object instance
           
 Parameter<?>[] parameters
           
 Method producer
           
 Type<T> returnType
           
 
Method Summary
 Type<T> getType()
           
 boolean isInstanceMethod()
           
static Producible<?> producible(Method producer, Parameter<?>[] parameters, Object instance)
           
static
<T> Producible<T>
producible(Type<T> returnType, Method producer, Parameter<?>[] parameters, Object instance)
           
<E> Producible<E>
typed(Type<E> supertype)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

returnType

public final Type<T> returnType

producer

public final Method producer

parameters

public final Parameter<?>[] parameters

instance

public final Object instance
Method Detail

producible

public static Producible<?> producible(Method producer,
                                       Parameter<?>[] parameters,
                                       Object instance)

producible

public static <T> Producible<T> producible(Type<T> returnType,
                                           Method producer,
                                           Parameter<?>[] parameters,
                                           Object instance)

isInstanceMethod

public boolean isInstanceMethod()

getType

public Type<T> getType()
Specified by:
getType in interface Typed<T>
Returns:
The Type of this object.

typed

public <E> Producible<E> typed(Type<E> supertype)
Specified by:
typed in interface Typed<T>
Returns:
This object with the given Type.

Silk DI 0.6