1 2 3 4 5 6 7 8 9 10 11 12 13
package theapp; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.DeclareParents; import moody.Moody; @Aspect class AnnotationMoodIndicator { @DeclareParents(value="theapp.AnnotationMoodImplementor",defaultImpl=MoodyImpl.class) private Moody implementedInterface; }