com.lonniepryor.blues.cfg
Class SetRefrenceCfg

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

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

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

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Constructor Summary
SetRefrenceCfg()
          Creates a new SetRefrenceCfg 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 setRef(java.lang.String ref)
          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

SetRefrenceCfg

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

setRef

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

Parameters:
ref - The refrence to 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.