com.lonniepryor.blues.cfg
Class AdviceCfgImpl

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

public class AdviceCfgImpl
extends AbstractBeanCfg
implements AdviceCfg, Verifiable

Generic implementation of AdviceCfg.

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface com.lonniepryor.blues.cfg.AdviceCfg
validAdviceTypes
 
Constructor Summary
AdviceCfgImpl()
          Creates a new AdviceCfgImpl object.
 
Method Summary
 void configure(java.lang.Object adviceInstance, Directory serviceDirectory)
          Configures an instance of the advice type.
 java.lang.Class getAdviceType()
          Return the type used to implement the advice.
 Pointcut getPointcutToAdvise()
          Returns the specification used to evaluate join points for this advice.
 void setClass(java.lang.Class adviceType)
          Sets the type used to implement the advice.
 void setPointcut(java.lang.String pointcutDef)
          Sets the specification used to evaluate join points for this advice.
 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

AdviceCfgImpl

public AdviceCfgImpl()
Creates a new AdviceCfgImpl object.

Method Detail

setClass

public void setClass(java.lang.Class adviceType)
Sets the type used to implement the advice.

Parameters:
adviceType - The type used to implement the advice.

setPointcut

public void setPointcut(java.lang.String pointcutDef)
Sets the specification used to evaluate join points for this advice.

Parameters:
pointcutDef - The pointcut pattern expression.

verify

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

Specified by:
verify in interface Verifiable

getAdviceType

public java.lang.Class getAdviceType()
Description copied from interface: AdviceCfg
Return the type used to implement the advice.

Specified by:
getAdviceType in interface AdviceCfg
Returns:
The type used to implement the advice.

getPointcutToAdvise

public Pointcut getPointcutToAdvise()
Description copied from interface: AdviceCfg
Returns the specification used to evaluate join points for this advice.

Specified by:
getPointcutToAdvise in interface AdviceCfg
Returns:
The specification used to evaluate join points for this advice.

configure

public void configure(java.lang.Object adviceInstance,
                      Directory serviceDirectory)
Description copied from interface: AdviceCfg
Configures an instance of the advice type.

Specified by:
configure in interface AdviceCfg
Parameters:
adviceInstance - The instance of the advice type to coinfigure.
serviceDirectory - The directory to look up refrenced services in.


Copyright © 2003 Blues Framework. All Rights Reserved.