org.xfp.filters.beans
Class BeanInstance

java.lang.Object
  extended byorg.xfp.AttributeContainer
      extended byorg.xfp.Filter
          extended byorg.xfp.filters.beans.BeanInstance

public class BeanInstance
extends Filter

Instantiates a JavaBean and sets its properties. This filter uses the Jakarta Commons BeanUtils package. com.myfirm.MyBean myvalue

Version:
$Id: BeanInstance.java,v 1.1 2004/03/19 15:56:46 flaviotordini Exp $
Author:
Flavio Tordini
See Also:
BeanUtils
JAR Dependency:
Jakarta Commons BeanUtils

Nested Class Summary
 
Nested classes inherited from class org.xfp.Filter
Filter.OnErrorEnum, Filter.OnLoopErrorEnum
 
Field Summary
 
Fields inherited from class org.xfp.AttributeContainer
name, parentContainer
 
Constructor Summary
BeanInstance()
           
 
Method Summary
 java.lang.Object execute()
          Executes this filter.
 java.lang.Object execute(java.lang.Class beanClass)
          Executes this filter.
 java.lang.Object execute(java.lang.String beanClassName)
          Executes this filter.
 void reset()
          Resets filter status after execution.
 void setProperty(java.lang.String propertyname, java.lang.Object propertyvalue)
          Sets a bean property.
 void setType(java.lang.String type)
          Sets the type.
 
Methods inherited from class org.xfp.Filter
getOnError, initialize, log, newInstance, perform, toString
 
Methods inherited from class org.xfp.AttributeContainer
configureAttributes, disposeAttributes, getAttributes, getFullName, getName, initializeAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanInstance

public BeanInstance()
Method Detail

setProperty

public void setProperty(java.lang.String propertyname,
                        java.lang.Object propertyvalue)
Sets a bean property.

Parameters:
propertyname - Name of the property to set
propertyvalue - Value for the property

execute

public java.lang.Object execute()
                         throws java.lang.Exception
Executes this filter.

Returns:
The bean.
Throws:
java.lang.Exception

execute

public java.lang.Object execute(java.lang.Class beanClass)
                         throws java.lang.Exception
Executes this filter.

Parameters:
beanClass - The bean class.
Returns:
The bean.
Throws:
java.lang.Exception

execute

public java.lang.Object execute(java.lang.String beanClassName)
                         throws java.lang.Exception
Executes this filter.

Parameters:
beanClassName - The name of the bean class.
Returns:
The bean.
Throws:
java.lang.Exception

reset

public void reset()
Description copied from class: Filter
Resets filter status after execution. This method is called after execute(), even in case of exceptions. Since a Filter instance may be reused (and actually is), you must use this method to reset all your class members to their default value.

Specified by:
reset in class Filter
See Also:
Filter.reset()

setType

public void setType(java.lang.String type)
Sets the type.

Parameters:
type - The type to set
Property is required.


Copyright © 2003-2004 XFP Team. All Rights Reserved.