|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.damnhandy.aspects.bean.JavaBeanAspect
public class JavaBeanAspect
This aspect, along with the PropertyChangeAspect, adds JavaBean
funcionality to an ordinary POJO or Value object. Once the Observable
annotation has been applied to the target object, other classes and listen
to property changes on the class without any modifications to the code.
JavaBean,
JavaBeanMixin,
PropertyChangeAspect| Field Summary | |
|---|---|
static java.lang.Object |
javaBeanIntroduction
Introduces the JavaBean interface to class marked with the
Observable annotation. |
| Constructor Summary | |
|---|---|
JavaBeanAspect()
|
|
| Method Summary | |
|---|---|
static JavaBeanMixin |
createJavaBeanMixin(java.lang.Object obj)
Provides the implementation to support the JavaBean introduction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.Object javaBeanIntroduction
JavaBean interface to class marked with the
Observable annotation. Once applied, any the advised class
may be safely cast to a JavaBean
| Constructor Detail |
|---|
public JavaBeanAspect()
| Method Detail |
|---|
public static JavaBeanMixin createJavaBeanMixin(java.lang.Object obj)
JavaBean introduction.
Note: you cannot cast an advised class to an instance of
JavaBeanMixin, only casting to the introduced interface is supported.
obj - the object marked with the Observable annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||