com.lonniepryor.blues.cfg
Class AbstractBeanCfg

java.lang.Object
  |
  +--com.lonniepryor.blues.cfg.AbstractBeanCfg
Direct Known Subclasses:
AdviceCfgImpl, ServiceCfgImpl, SetBeanCfg, SingletonCfgImpl

public abstract class AbstractBeanCfg
extends java.lang.Object

Utility base class for configuration elements that want to support calling declared JavaBeans operations.

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Constructor Summary
protected AbstractBeanCfg()
          Creates a new AbstractBeanCfg object.
 
Method Summary
protected  void configureBean(BeanHelper helper, java.lang.Object beanInstance, Directory serviceDirectory)
          Configures the specified JavaBean with the set operations declared on this element.
protected  void configureBean(java.lang.Object beanInstance, Directory serviceDirectory)
          Configures the specified JavaBean with the set operations declared on this element.
 void declareSetBean(SetBeanCfg setBean)
          Declares a nested JavaBean to be set on this bean config.
 void declareSetRefrence(SetRefrenceCfg setRefrence)
          Declares a refrence to be set on this bean config.
 void declareSetValue(SetValueCfg setValue)
          Declares a value to be set on this bean config.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBeanCfg

protected AbstractBeanCfg()
Creates a new AbstractBeanCfg object.

Method Detail

declareSetValue

public void declareSetValue(SetValueCfg setValue)
Declares a value to be set on this bean config.

Parameters:
setValue - The value set configuration.

declareSetRefrence

public void declareSetRefrence(SetRefrenceCfg setRefrence)
Declares a refrence to be set on this bean config.

Parameters:
setRefrence - The refrence set configuration.

declareSetBean

public void declareSetBean(SetBeanCfg setBean)
Declares a nested JavaBean to be set on this bean config.

Parameters:
setBean - The bean set configuration.

configureBean

protected void configureBean(java.lang.Object beanInstance,
                             Directory serviceDirectory)
Configures the specified JavaBean with the set operations declared on this element.

Parameters:
beanInstance - The JavaBean to configure.
serviceDirectory - The directory to look up refrenced services in.

configureBean

protected void configureBean(BeanHelper helper,
                             java.lang.Object beanInstance,
                             Directory serviceDirectory)
Configures the specified JavaBean with the set operations declared on this element.

Parameters:
helper - The bean helper to use.
beanInstance - The JavaBean to configure.
serviceDirectory - The directory to look up refrenced services in.


Copyright © 2003 Blues Framework. All Rights Reserved.