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 java.lang.Object
implements ConstantInjector


Constructor Summary
ConstantInjectorImpl(ClassFab classFab)
           
 
Method Summary
 java.lang.Object[] getParameters()
           
<T> java.lang.String
inject(java.lang.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> java.lang.String inject(java.lang.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 java.lang.Object[] getParameters()


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