com.damnhandy.aspects.bean
Class JavaBeanAspect

java.lang.Object
  extended by com.damnhandy.aspects.bean.JavaBeanAspect

public class JavaBeanAspect
extends java.lang.Object

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.

Author:
Ryan J. McDonough
See Also:
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

javaBeanIntroduction

public static java.lang.Object javaBeanIntroduction
Introduces the JavaBean interface to class marked with the Observable annotation. Once applied, any the advised class may be safely cast to a JavaBean

Constructor Detail

JavaBeanAspect

public JavaBeanAspect()
Method Detail

createJavaBeanMixin

public static JavaBeanMixin createJavaBeanMixin(java.lang.Object obj)
Provides the implementation to support the JavaBean introduction. Note: you cannot cast an advised class to an instance of JavaBeanMixin, only casting to the introduced interface is supported.

Parameters:
obj - the object marked with the Observable annotation
Returns:
the instance of the mixin class


Copyright © 2005 Ryan J. McDonough All Rights Reserved.