]> source.dussan.org Git - aspectj.git/commitdiff
doc fix for @DeclareParents
authoracolyer <acolyer>
Thu, 22 Dec 2005 10:01:40 +0000 (10:01 +0000)
committeracolyer <acolyer>
Thu, 22 Dec 2005 10:01:40 +0000 (10:01 +0000)
docs/adk15ProgGuideDB/ataspectj.xml

index 216418f31a726bbf5d4e86c584a69e371c695df4..4faa145487078b9b9eff5b5a41da0eff0c7f31bc 100644 (file)
         };
 
         // this implementation can be outside of the aspect
-        public class MoodyImpl implements Moody {
+        public static class MoodyImpl implements Moody {
            private Mood mood = Mood.HAPPY;
 
            public Mood getMood() {
         }
 
         // the field type must be the introduced interface. It can't be a class.
-        @DeclareParents(value="org.xzy..*",defaultImpl="MoodyImpl")
+        @DeclareParents(value="org.xzy..*",defaultImpl=MoodyImpl.class)
         private Moody implementedInterface;
 
         @Before("execution(* *.*(..)) && this(m)")