alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 * Bean.java
 *
 * Created on May 20, 2004, 1:46 PM
 */

package org.netbeans.tests.examples.packa;

import java.lang.reflect.Method;
import java.util.HashMap;
import org.netbeans.tests.examples.packb.BeanA;
import org.netbeans.tests.examples.packb.BeansD;

/**
 *
 * @author  eh103527
 */
public class Bean {
        
    HashMap properties;
    HashMap associations;
    
    protected int refID=1234;
    
    /** Creates a new instance of Bean */
    protected Bean() {
        properties=new HashMap();
        associations=new HashMap();
    }
   
    public Property[] getProperties() {
        return (Property[])(properties.keySet().toArray(new Property[properties.size()]));
    }
    
    public Bean abc() {
        BeanA a=new BeansD.BeanDA("text");
        setA((BeansD.BeanDA)a);
        Bean b=new org.netbeans.tests.examples.packb.BeanB();
        return a;
    }
    
    public void setA(BeansD.BeanDA aa) {
        System.out.println("bye");
    }
    
    public int getRefID() {
        return refID;
    }
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.