You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/05/07 03:35:55 UTC
[jira] Created: (TAPESTRY-2410) Service decorator method not
invoked for @Match with "*" in middle
Service decorator method not invoked for @Match with "*" in middle
------------------------------------------------------------------
Key: TAPESTRY-2410
URL: https://issues.apache.org/jira/browse/TAPESTRY-2410
Project: Tapestry
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.0.11
Reporter: Howard M. Lewis Ship
Assignee: Howard M. Lewis Ship
Priority: Critical
The following does NOT get called for service IProjectAlternativeScorer:
@Match({ "I*Scorer", "I*DAO" })
@Order("after:*Logging")
public static <T> T decorateWithTransactionManagement(
Class<T> serviceInterface,
T delegate,
String serviceId,
HibernateTransactionDecorator decorator)
{
return decorator.build(serviceInterface, delegate, serviceId);
}
Changing the first match to "*Scorer" (i.e., putting the star at the beginning) results in a the method getting invoked properly.
--
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] Commented: (TAPESTRY-2410) Service decorator method not
invoked for @Match with "*" in middle
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619757#action_12619757 ]
Howard M. Lewis Ship commented on TAPESTRY-2410:
------------------------------------------------
In addition, the values used with @Match can now be regular expressions.
> Service decorator method not invoked for @Match with "*" in middle
> ------------------------------------------------------------------
>
> Key: TAPESTRY-2410
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2410
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.11
> Reporter: Howard M. Lewis Ship
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.0.14
>
>
> The following does NOT get called for service IProjectAlternativeScorer:
> @Match({ "I*Scorer", "I*DAO" })
> @Order("after:*Logging")
> public static <T> T decorateWithTransactionManagement(
> Class<T> serviceInterface,
> T delegate,
> String serviceId,
> HibernateTransactionDecorator decorator)
> {
> return decorator.build(serviceInterface, delegate, serviceId);
> }
> Changing the first match to "*Scorer" (i.e., putting the star at the beginning) results in a the method getting invoked properly.
--
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-2410) Service decorator method not
invoked for @Match with "*" in middle
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAPESTRY-2410:
-------------------------------------------
Priority: Minor (was: Critical)
Issue Type: Improvement (was: Bug)
Turns out, "*" is only allowed at the start or end, but not in the middle. This is a desirable feature to implement, but doesn't not represent broken code or a regression (thus the decrease in priority).
> Service decorator method not invoked for @Match with "*" in middle
> ------------------------------------------------------------------
>
> Key: TAPESTRY-2410
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2410
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.11
> Reporter: Howard M. Lewis Ship
> Assignee: Howard M. Lewis Ship
> Priority: Minor
>
> The following does NOT get called for service IProjectAlternativeScorer:
> @Match({ "I*Scorer", "I*DAO" })
> @Order("after:*Logging")
> public static <T> T decorateWithTransactionManagement(
> Class<T> serviceInterface,
> T delegate,
> String serviceId,
> HibernateTransactionDecorator decorator)
> {
> return decorator.build(serviceInterface, delegate, serviceId);
> }
> Changing the first match to "*Scorer" (i.e., putting the star at the beginning) results in a the method getting invoked properly.
--
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] Closed: (TAPESTRY-2410) Service decorator method not invoked
for @Match with "*" in middle
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-2410.
------------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.14
> Service decorator method not invoked for @Match with "*" in middle
> ------------------------------------------------------------------
>
> Key: TAPESTRY-2410
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2410
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.11
> Reporter: Howard M. Lewis Ship
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.0.14
>
>
> The following does NOT get called for service IProjectAlternativeScorer:
> @Match({ "I*Scorer", "I*DAO" })
> @Order("after:*Logging")
> public static <T> T decorateWithTransactionManagement(
> Class<T> serviceInterface,
> T delegate,
> String serviceId,
> HibernateTransactionDecorator decorator)
> {
> return decorator.build(serviceInterface, delegate, serviceId);
> }
> Changing the first match to "*Scorer" (i.e., putting the star at the beginning) results in a the method getting invoked properly.
--
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