org.apache.tapestry5.ioc.internal.services
Class ConstantInjectorImpl

java.lang.Object
  extended by org.apache.tapestry5.ioc.internal.services.ConstantInjectorImpl
All Implemented Interfaces:
ConstantInjector

public class ConstantInjectorImpl
extends Object
implements ConstantInjector


Constructor Summary
ConstantInjectorImpl(ClassFab classFab)
           
 
Method Summary
 Object[] getParameters()
           
<T> String
inject(Class<T> type, T instance)
          Injects a value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantInjectorImpl

public ConstantInjectorImpl(ClassFab classFab)
Method Detail

inject

public <T> String inject(Class<T> type,
                         T instance)
Description copied from interface: ConstantInjector
Injects a value. On the first injection of the value, it is assigned a field (of the given type).

Specified by:
inject in interface ConstantInjector
Parameters:
type - type of field
instance - instance of the type
Returns:
name of field in generated class containing the value

getParameters

public Object[] getParameters()


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.