PHP 클래스 Go\Core\GoAspectContainer

상속: extends Container, implements Go\Core\AspectContainer
파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$maxTimestamp integer Cached timestamp for resources
$resources array List of resources for application

공개 메소드들

메소드 설명
__construct ( ) Constructor for container
addResource ( $resource ) Add an AOP resource to the container
getAdvisor ( string $id ) : Go\Aop\Advisor Returns an advisor by identifier
getAspect ( string $aspectName ) : Go\Aop\Aspect Returns an aspect by id or class name
getPointcut ( string $id ) : Go\Aop\Pointcut Returns a pointcut by identifier
getResources ( ) : array Returns list of AOP resources
isFresh ( integer $timestamp ) : boolean Checks the freshness of AOP cache
registerAdvisor ( Go\Aop\Advisor $advisor, string $id ) Store the advisor in the container
registerAspect ( Go\Aop\Aspect $aspect ) Register an aspect in the container
registerPointcut ( Go\Aop\Pointcut $pointcut, string $id ) Store the pointcut in the container

메소드 상세

__construct() 공개 메소드

Constructor for container
public __construct ( )

addResource() 공개 메소드

Resources is used to check the freshness of AOP cache
public addResource ( $resource )

getAdvisor() 공개 메소드

Returns an advisor by identifier
public getAdvisor ( string $id ) : Go\Aop\Advisor
$id string Advisor identifier
리턴 Go\Aop\Advisor

getAspect() 공개 메소드

Returns an aspect by id or class name
public getAspect ( string $aspectName ) : Go\Aop\Aspect
$aspectName string Aspect name
리턴 Go\Aop\Aspect

getPointcut() 공개 메소드

Returns a pointcut by identifier
public getPointcut ( string $id ) : Go\Aop\Pointcut
$id string Pointcut identifier
리턴 Go\Aop\Pointcut

getResources() 공개 메소드

Returns list of AOP resources
public getResources ( ) : array
리턴 array

isFresh() 공개 메소드

Checks the freshness of AOP cache
public isFresh ( integer $timestamp ) : boolean
$timestamp integer
리턴 boolean Whether or not concrete file is fresh

registerAdvisor() 공개 메소드

Store the advisor in the container
public registerAdvisor ( Go\Aop\Advisor $advisor, string $id )
$advisor Go\Aop\Advisor Instance
$id string Key for advisor

registerAspect() 공개 메소드

Register an aspect in the container
public registerAspect ( Go\Aop\Aspect $aspect )
$aspect Go\Aop\Aspect Instance of concrete aspect

registerPointcut() 공개 메소드

Store the pointcut in the container
public registerPointcut ( Go\Aop\Pointcut $pointcut, string $id )
$pointcut Go\Aop\Pointcut Instance
$id string Key for pointcut

프로퍼티 상세

$maxTimestamp 보호되어 있는 프로퍼티

Cached timestamp for resources
protected int $maxTimestamp
리턴 integer

$resources 보호되어 있는 프로퍼티

List of resources for application
protected array $resources
리턴 array