com.lonniepryor.blues.cfg
Class SetValueCfg

java.lang.Object
  |
  +--com.lonniepryor.blues.cfg.SetValueCfg
All Implemented Interfaces:
SetCfg, Verifiable

public class SetValueCfg
extends java.lang.Object
implements SetCfg, Verifiable

Child element for setting java beans properties to a basic value.

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Constructor Summary
SetValueCfg()
          Creates a new SetValueCfg object.
 
Method Summary
 void configure(BeanHelper helper, java.lang.Object beanInstance, Directory serviceDirectory)
          Sets the property represented by this config on the specified bean using the supplied bean helper.
 void setProperty(java.lang.String property)
          Sets the name of the property to set.
 void setValue(java.lang.String value)
          Sets the value of the property.
 void verify()
          Verifies the state of this configuration element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetValueCfg

public SetValueCfg()
Creates a new SetValueCfg object.

Method Detail

setProperty

public void setProperty(java.lang.String property)
Sets the name of the property to set.

Parameters:
property - The name of the property to set.

setValue

public void setValue(java.lang.String value)
Sets the value of the property.

Parameters:
value - The value of the property.

verify

public void verify()
Description copied from interface: Verifiable
Verifies the state of this configuration element.

Specified by:
verify in interface Verifiable

configure

public void configure(BeanHelper helper,
                      java.lang.Object beanInstance,
                      Directory serviceDirectory)
Description copied from interface: SetCfg
Sets the property represented by this config on the specified bean using the supplied bean helper.

Specified by:
configure in interface SetCfg
Parameters:
helper - The bean helper to use.
beanInstance - The bean to initalize.
serviceDirectory - The directory to look up refrenced services in.


Copyright © 2003 Blues Framework. All Rights Reserved.