| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Commons Beanutils example source code file (

This example Commons Beanutils source code file ( is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Commons Beanutils tags/keywords

dynabean, dynabean, dynaclass, dynaproperty, dynaproperty, illegalaccessexception, illegalaccessexception, instantiationexception, string, string

The Commons Beanutils source code

 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.

package org.apache.commons.beanutils;

 * <p>A DynaClass is a simulation of the functionality of
 * <code>java.lang.Class for classes implementing the
 * <code>DynaBean interface.  DynaBean instances that share the same
 * DynaClass all have the same set of available properties, along with any
 * associated data types, read-only states, and write-only states.</p>
 * @author Craig McClanahan
 * @author Michael Smith
 * @author Paulo Gaspar
 * @version $Revision: 555824 $ $Date: 2007-07-13 01:27:15 +0100 (Fri, 13 Jul 2007) $

public interface DynaClass {

     * Return the name of this DynaClass (analogous to the
     * <code>getName() method of java.lang.Class implementation class to support
     * different dynamic classes, with different sets of properties.
     * @return the name of the DynaClass
    public String getName();

     * Return a property descriptor for the specified property, if it exists;
     * otherwise, return <code>null.
     * @param name Name of the dynamic property for which a descriptor
     *  is requested
     * @return The descriptor for the specified property
     * @exception IllegalArgumentException if no property name is specified
    public DynaProperty getDynaProperty(String name);

     * <p>Return an array of ProperyDescriptors for the properties
     * currently defined in this DynaClass.  If no properties are defined, a
     * zero-length array will be returned.</p>
     * <p>FIXME - Should we really be implementing
     * <code>getBeanInfo() instead, which returns property descriptors
     * and a bunch of other stuff?</p>
     * @return the set of properties for this DynaClass
    public DynaProperty[] getDynaProperties();

     * Instantiate and return a new DynaBean instance, associated
     * with this DynaClass.
     * @return A new <code>DynaBean instance
     * @exception IllegalAccessException if the Class or the appropriate
     *  constructor is not accessible
     * @exception InstantiationException if this Class represents an abstract
     *  class, an array class, a primitive type, or void; or if instantiation
     *  fails for some other reason
    public DynaBean newInstance()
            throws IllegalAccessException, InstantiationException;


Other Commons Beanutils examples (source code examples)

Here is a short list of links related to this Commons Beanutils source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
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.