Class org.as2lib.aop.joinpoint.ConstructorJoinPoint

????
   +--AbstractJoinPoint
      +--org.as2lib.aop.joinpoint.MethodJoinPoint
         +--org.as2lib.aop.joinpoint.ConstructorJoinPoint

Description

ConstructorJoinPoint represents a constructor as join point.

Method Index

new ConstructorJoinPoint()

getType(), snapshot(), update()

Inherited from MethodJoinPoint

getInfo(), proceed()

Constructor Detail

ConstructorJoinPoint

public function ConstructorJoinPoint(info:ConstructorInfo, thiz)

Constructs a new ConstructorJoinPoint instance.

Parameters

infothe info of the represented constructor
thizthe logical this of the interception

Throws

IllegalArgumentExceptionif argument info is null or undefined

Method Detail

getType

public function getType(Void):Number

Returns the type of this join point.

Return

AbstractJoinPoint#CONSTRUCTOR

Specified By

getType() in org.as2lib.aop.JoinPoint

Overrides

getType() in org.as2lib.aop.joinpoint.MethodJoinPoint

update

public function update(thiz):JoinPoint

Returns a copy of this join point with an updated logical this. This join point is left unchanged.

Parameters

thizthe new logical this

Return

a copy of this join point with an updated logical this

Specified By

update() in org.as2lib.aop.JoinPoint

Overrides

update() in org.as2lib.aop.joinpoint.MethodJoinPoint

snapshot

public function snapshot(Void):JoinPoint

Returns a copy of this join point that reflects its current state.

It is common practice to create a new join point for a not-fixed constructor info. This is when the underlying concrete constructor this join point reflects may change. To make the concrete constructor and other parts that may change fixed you can use this method to get a new fixed join point, a snapshot.

Return

a snapshot of this join point

Specified By

snapshot() in org.as2lib.aop.JoinPoint

Overrides

snapshot() in org.as2lib.aop.joinpoint.MethodJoinPoint