org.apache.tapestry5.ioc.internal.services
Interface ConstantInjector
- All Known Implementing Classes:
- ConstantInjectorImpl
public interface ConstantInjector
Used to inject constants into fields via the constructor.
|
Method Summary |
|
inject(java.lang.Class<T> type,
T instance)
Injects a value. |
inject
<T> java.lang.String inject(java.lang.Class<T> type,
T instance)
- Injects a value. On the first injection of the value, it is assigned a field (of the given type).
- Parameters:
type - type of fieldinstance - instance of the type
- Returns:
- name of field in generated class containing the value
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.