com.lonniepryor.blues.cfg
Class SetBeanCfg

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

public class SetBeanCfg
extends AbstractBeanCfg
implements SetCfg, Verifiable

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

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Constructor Summary
SetBeanCfg()
          Creates a new SetBeanCfg 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 setClass(java.lang.Class beanClass)
          Sets the type of the bean to set.
 void setProperty(java.lang.String property)
          Sets the name of the property to set.
 void verify()
          Verifies the state of this configuration element.
 
Methods inherited from class com.lonniepryor.blues.cfg.AbstractBeanCfg
configureBean, configureBean, declareSetBean, declareSetRefrence, declareSetValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetBeanCfg

public SetBeanCfg()
Creates a new SetBeanCfg 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.

setClass

public void setClass(java.lang.Class beanClass)
Sets the type of the bean to set.

Parameters:
beanClass - The type of the bean to set.

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.