org.milyn.javabean.observers
Class ListToArrayChangeObserver

java.lang.Object
  extended by org.milyn.javabean.observers.ListToArrayChangeObserver
All Implemented Interfaces:
org.milyn.javabean.lifecycle.BeanContextLifecycleObserver

public class ListToArrayChangeObserver
extends Object
implements org.milyn.javabean.lifecycle.BeanContextLifecycleObserver

List to array change event listener.

Arrays start out their lives as Lists. When the list is populated with all wired in object entries, the List is converted to an Array. This observer listens for that event and triggers the wiring of the array into the target bean.

Author:
tom.fennelly@gmail.com

Constructor Summary
ListToArrayChangeObserver(org.milyn.javabean.repository.BeanId watchedBean, String property, BeanInstancePopulator populator)
           
 
Method Summary
 void onBeanLifecycleEvent(org.milyn.javabean.lifecycle.BeanContextLifecycleEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListToArrayChangeObserver

public ListToArrayChangeObserver(org.milyn.javabean.repository.BeanId watchedBean,
                                 String property,
                                 BeanInstancePopulator populator)
Method Detail

onBeanLifecycleEvent

public void onBeanLifecycleEvent(org.milyn.javabean.lifecycle.BeanContextLifecycleEvent event)
Specified by:
onBeanLifecycleEvent in interface org.milyn.javabean.lifecycle.BeanContextLifecycleObserver


Copyright © 2018. All rights reserved.