You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by foror <fo...@mail.ru> on 2009/02/16 10:28:26 UTC
Problem with annotationProvider in ObjectProvider
If annotation added in tapestry page it worked:
public class SomePage {
@Inject @SomeAnnot
private TypeNotRegisteredInModuleAsService field;
}
annotationProvider.getAnnotation(SomeAnnot.class) != null
If annotation added in tapestry service it not worked:
public class SomeService {
// If without constructor and add annotation to this field - also
not worked
private TypeNotRegisteredInModuleAsService field;
public SomeService(
// With @Inject also not worked
@SomeAnnot
TypeNotRegisteredInModuleAsService field) {
this.field = field;
}
}
annotationProvider.getAnnotation(SomeAnnot.class) == null
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Problem with annotationProvider in ObjectProvider
Posted by foror <fo...@mail.ru>.
Forget add to annotation RetentionPolicy.RUNTIME. Now is worked.
> If annotation added in tapestry service it not worked:
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org