You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Thiago H. de Paula Figueiredo (JIRA)" <de...@tapestry.apache.org> on 2007/10/31 13:11:51 UTC
[jira] Created: (TAPESTRY-1874) Provide decorators service matching
based on annotations
Provide decorators service matching based on annotations
--------------------------------------------------------
Key: TAPESTRY-1874
URL: https://issues.apache.org/jira/browse/TAPESTRY-1874
Project: Tapestry
Issue Type: New Feature
Components: tapestry-ioc
Affects Versions: 5.0.6
Reporter: Thiago H. de Paula Figueiredo
It would be very useful if we could match services for decoration using the services' annotations. In spite of documentation saying it can be done, it can't:
Tapestry IoC documentation:
"Note: It is not possible to decorate the services of the TapestryIOCModule."
"Note: Another idea will be other ways of matching services: base on inheritance of the service interface and/or based on the presence of particular class annotations on the service interface. None of this has been implemented yet, and can readily be accompllished inside the decorator method (which will return null if it decides the service doesn't need decoration)."
If you write a @Match("*"), Tapestry-IoC throws an exception telling that you cannot decorate internal Tapestry-IoC services. Therefore, there's no way to select services to decorate using only annotations: we need to match services based on name patterns in all situations.
A suggestions is the creation of a @MatchAnnotation() annotation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAP5-76) Provide decorators service matching based
on annotations
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAP5-76:
-------------------------------------
Issue Type: Improvement (was: Bug)
> Provide decorators service matching based on annotations
> --------------------------------------------------------
>
> Key: TAP5-76
> URL: https://issues.apache.org/jira/browse/TAP5-76
> Project: Tapestry 5
> Issue Type: Improvement
> Affects Versions: 5.0.15
> Reporter: Thiago H. de Paula Figueiredo
>
> It would be very useful if we could match services for decoration using the services' annotations. In spite of documentation saying it can be done, it can't:
> Tapestry IoC documentation:
> "Note: It is not possible to decorate the services of the TapestryIOCModule."
> "Note: Another idea will be other ways of matching services: base on inheritance of the service interface and/or based on the presence of particular class annotations on the service interface. None of this has been implemented yet, and can readily be accompllished inside the decorator method (which will return null if it decides the service doesn't need decoration)."
> If you write a @Match("*"), Tapestry-IoC throws an exception telling that you cannot decorate internal Tapestry-IoC services. Therefore, there's no way to select services to decorate using only annotations: we need to match services based on name patterns in all situations.
> A suggestions is the creation of a @MatchAnnotation() annotation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1874) Provide decorators service matching
based on annotations
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAPESTRY-1874:
-------------------------------------------
Fix Version/s: 5.1
> Provide decorators service matching based on annotations
> --------------------------------------------------------
>
> Key: TAPESTRY-1874
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1874
> Project: Tapestry
> Issue Type: New Feature
> Components: tapestry-ioc
> Affects Versions: 5.0.6
> Reporter: Thiago H. de Paula Figueiredo
> Fix For: 5.1
>
>
> It would be very useful if we could match services for decoration using the services' annotations. In spite of documentation saying it can be done, it can't:
> Tapestry IoC documentation:
> "Note: It is not possible to decorate the services of the TapestryIOCModule."
> "Note: Another idea will be other ways of matching services: base on inheritance of the service interface and/or based on the presence of particular class annotations on the service interface. None of this has been implemented yet, and can readily be accompllished inside the decorator method (which will return null if it decides the service doesn't need decoration)."
> If you write a @Match("*"), Tapestry-IoC throws an exception telling that you cannot decorate internal Tapestry-IoC services. Therefore, there's no way to select services to decorate using only annotations: we need to match services based on name patterns in all situations.
> A suggestions is the creation of a @MatchAnnotation() annotation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org