org.apache.tapestry5.ioc.internal.services
Class ConstantInjectorImpl
java.lang.Object
org.apache.tapestry5.ioc.internal.services.ConstantInjectorImpl
- All Implemented Interfaces:
- ConstantInjector
public class ConstantInjectorImpl
- extends Object
- implements ConstantInjector
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantInjectorImpl
public ConstantInjectorImpl(ClassFab classFab)
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 fieldinstance - 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.