|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.aop.AOPAdvisor
public class AOPAdvisor
This does the heavy lifting for getting the advice around the methods
| Constructor Summary | |
|---|---|
init(MethodInjector methodInjector, string definitionPath)
Constructor |
|
| Method Summary | |
|---|---|
array |
__findPointCuts(string pointcut)
builds an array of method point cuts from a string regex |
void |
__weave(MethodInjector methodInjector, string pointCutName, string advicePath, string aopKey)
weaves the advice |
void |
advise(any component, any pointcut, AbstractBaseAdviceBuilder adviceBuilder, [boolean debug='false'])
wrap some advice around a method |
private array |
findPointCuts(any component, string pointcut)
builds a array of methods from a poincut regex |
private string |
getDefinitionPath()
|
private MethodInjector |
getMethodInjector()
|
private void |
setDefinitionPath(string DefinitionPath)
|
private void |
setMethodInjector(MethodInjector methodInjector)
|
private void |
weaveAdvice(any component, any pointcut, AbstractBaseAdviceBuilder adviceBuilder, [boolean debug='false'])
weaves the advice into the component's method |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(MethodInjector methodInjector, string definitionPath)
methodInjector - The method injector cfcdefinitionPath - Path to where the definitions are kept| Method Detail |
|---|
public array __findPointCuts(string pointcut)
pointcut - a regex for functions to advisepublic void __weave(MethodInjector methodInjector, string pointCutName, string advicePath, string aopKey)
methodInjector - The method injectorpointCutName - the name of the advice to weaveadvicePath - The name the advice fileaopKey - the aop scope keypublic void advise(any component, any pointcut, AbstractBaseAdviceBuilder adviceBuilder, [boolean debug='false'])
component - the component to apply the advice topointcut - either a function, or a regex for functions to adviseadviceBuilder - the advice builderdebug - when true, cftrace's the method names that gets advicedprivate array findPointCuts(any component, string pointcut)
component - the component to apply the advice topointcut - a regex for functions to adviseprivate string getDefinitionPath()
private MethodInjector getMethodInjector()
private void setDefinitionPath(string DefinitionPath)
DefinitionPathprivate void setMethodInjector(MethodInjector methodInjector)
methodInjectorprivate void weaveAdvice(any component, any pointcut, AbstractBaseAdviceBuilder adviceBuilder, [boolean debug='false'])
component - the component to apply the advice topointcut - the function to writeadviceBuilder - the advice builderdebug - when true, cftrace's the method names that gets adviced
|
Transfer version 1.1 | ||||
| FRAMES | |||||