|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.FilteredPropertiesInjector
public class FilteredPropertiesInjector
This implementation only attempts to inject a property when this property satisfies a MemberPredicate object.
| Constructor Summary | |
|---|---|
FilteredPropertiesInjector(BeanType btype,
MemberPredicate pred)
Create an instance of FilteredPropertiesInjector. |
|
| Method Summary | |
|---|---|
void |
injectProperties(java.lang.Object obj,
Dependency dep)
Pull property values and inject to the object. |
static PropertiesInjector |
instance(java.lang.Class type,
MemberPredicate pred)
Create an instance of FilteredPropertiesInjector. |
java.lang.String |
toString()
|
void |
verifyProperties(java.lang.Class type,
Dependency dep)
Verify that all required properties are resolveable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilteredPropertiesInjector(BeanType btype,
MemberPredicate pred)
btype - the bean type. If null, dynamic binding is used.pred - the MemberPredicate object to filter the properties.| Method Detail |
|---|
public static PropertiesInjector instance(java.lang.Class type,
MemberPredicate pred)
throws java.beans.IntrospectionException
type - the bean class.pred - the MemberPredicate object.
java.beans.IntrospectionException
public void injectProperties(java.lang.Object obj,
Dependency dep)
PropertiesInjector
injectProperties in interface PropertiesInjectorobj - the object to inject properties to.dep - the dependency to pull property values form.
public void verifyProperties(java.lang.Class type,
Dependency dep)
PropertiesInjector
verifyProperties in interface PropertiesInjectortype - the type that has the properties.dep - the dependency to resolve properties.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||