FileDocCategorySizeDatePackage
MembershipTest.javaAPI DocExample1026Tue Dec 12 18:58:22 GMT 2000None

MembershipTest

public class MembershipTest extends Object
A simple test program to illustrate delivery of the BeanContextMembershipEvent.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        BeanContextSupport context = new BeanContextSupport(); // the context
        MyMembershipListener listener = new MyMembershipListener(); 
        BeanContextChildSupport bean = new BeanContextChildSupport(); // a JavaBean
        context.addBeanContextMembershipListener(listener); // now listening!
        context.add(bean);
        context.remove(bean);