$aop

Namespace

$aop

Description:
  • 전후처리 유틸리티

Author:
  • 정민석 (whitn86@gmail.com)

Methods

(static) add(name, path, advice, fn)

Description:
  • aop 처리를 등록 공통 처리 추가용 함수

Example
nexacro.$aop.add("commonGridRClickBefore", "nexacro.Grid.prototype.on_fire_onclick", "before", function(arg){
   // 함수 구현...
});
nexacro.$aop.add("commonGridRClickAround", "nexacro.Grid.prototype.on_fire_onclick", "around", function(arg, next){
   // 함수 구현...
});
nexacro.$aop.add("commonGridRClickAfter", "nexacro.Grid.prototype.on_fire_onclick", "after", function(arg, result){
   // 함수 구현...
});
Parameters:
Name Type Description
name string

등록명칭

path string

Aop 처리 대상 함수 경로

advice "before" | "around" | "after"

AOP 실행 시점

fn function

실행할 함수

(static) remove(name, path)

Description:
  • aop 처리를 해지 공통 처리 제거용 함수

Example
nexacro.$aop.remove("commonGridRClick", "nexacro.Grid.prototype.on_fire_onclick");
Parameters:
Name Type Description
name string

등록명칭

path string

Aop 처리 대상 함수 경로