Skip to content

Commit

Permalink
TAP5-1334: Id attribute of the @decorate annotation should be optional
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tapestry/tapestry5/trunk@1031229 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
drobiazko committed Nov 4, 2010
1 parent 02fa5b6 commit 7ae6235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
/**
* Id of the decorator.
*/
String id();
String id() default "";
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class DecorateByMarkerModule
{

@Decorate(serviceInterface=Greeter.class, id="foo")
@Decorate(serviceInterface=Greeter.class)
@GreenMarker
public static <T> T greeter(ServiceResources resources, T delegate, AspectDecorator aspectDecorator)
{
Expand All @@ -39,15 +39,15 @@ public static <T> T greeter(ServiceResources resources, T delegate, AspectDecora

@Decorate(serviceInterface=Greeter.class, id="bar")
@GreenMarker
@Order("after:foo")
@Order("after:Greeter")
public static <T> T greeter2(ServiceResources resources, T delegate, AspectDecorator aspectDecorator)
{
return doDecorate("bar", resources, delegate, aspectDecorator);
}

@Decorate(serviceInterface=Greeter.class, id="baz")
@GreenMarker
@Order({"after:foo", "before:bar"})
@Order({"after:Greeter", "before:bar"})
public static <T> T greeter3(ServiceResources resources, T delegate, AspectDecorator aspectDecorator)
{
return doDecorate("baz", resources, delegate, aspectDecorator);
Expand Down

0 comments on commit 7ae6235

Please sign in to comment.