ColdBox Platform Version 2.6.4

coldbox.system.aop.aspects
Class TransactionAdvise

WEB-INF.cftags.component
        extended by coldbox.system.FrameworkSupertype
            extended by coldbox.system.Interceptor
                extended by coldbox.system.aop.aspects.TransactionAdvise

public class TransactionAdvise
extends Interceptor

A cool annotation based Transaction Advice for model objects and handlers.


Method Summary
private void $aop_include(string templatePath)
          Mix in a template
private void $aop_remove([any methodName])
          Remove a method
private any $aop_transaction([any jointpoint], [any jpArguments])
          The aop invoker
 void adviseBuilder(any target)
          build the advise based on the pointcuts found via annotations
 void afterHandlerCreation([any event], [any interceptData])
 void afterModelCreation([any event], [any interceptData])
 void configure()
          Configure the interceptor
private void decorateAOPTarget(any target)
          Decorate an AOP target with the basics of AOP decoration
private boolean removeAspect(string genPath)
          Remove a method generator stub
 void weaveAdvise(any target='', any jointpoint='')
          Weave an advise on a jointpoint
private void writeAspect(string genPath, string code)
          Write a method generator stub
 
Methods inherited from class coldbox.system.Interceptor
appendToBuffer, clearBuffer, getBufferObject, getBufferString, getInterceptorService, getProperty, getproperties, init, propertyExists, setProperty, setproperties, unregister
 
Methods inherited from class coldbox.system.FrameworkSupertype
$abort, $dump, $htmlhead, $include, $rethrow, $throw, addAsset, announceInterception, getColdboxOCM, getController, getDatasource, getDebugMode, getHash, getInstance, getInterceptor, getMailSettings, getModel, getModuleSettings, getMyPlugin, getPlugin, getResource, getSetting, getSettingStructure, getSettingsBean, getfwLocale, includeUDF, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderView, runEvent, setDebugMode, setNextEvent, setNextRoute, setSetting, setfwLocale, settingExists
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

$aop_include

private void $aop_include(string templatePath)
Mix in a template

Parameters:
templatePath

$aop_remove

private void $aop_remove([any methodName])
Remove a method

Parameters:
methodName

$aop_transaction

private any $aop_transaction([any jointpoint], [any jpArguments])
The aop invoker

Parameters:
jointpoint - The jointpoint to execute
jpArguments - The arguments passed to the jointpoint

adviseBuilder

public void adviseBuilder(any target)
build the advise based on the pointcuts found via annotations

Parameters:
target - The target to advise

afterHandlerCreation

public void afterHandlerCreation([any event], [any interceptData])

Parameters:
event
interceptData

afterModelCreation

public void afterModelCreation([any event], [any interceptData])

Parameters:
event
interceptData

configure

public void configure()
Configure the interceptor


decorateAOPTarget

private void decorateAOPTarget(any target)
Decorate an AOP target with the basics of AOP decoration

Parameters:
target - The target to advise

removeAspect

private boolean removeAspect(string genPath)
Remove a method generator stub

Parameters:
genPath

weaveAdvise

public void weaveAdvise(any target='', any jointpoint='')
Weave an advise on a jointpoint

Parameters:
target - The target object
jointpoint - The jointpoint to weave

writeAspect

private void writeAspect(string genPath, string code)
Write a method generator stub

Parameters:
genPath
code

ColdBox Platform Version 2.6.4