|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.core.ExecutionPointTarget
public abstract class ExecutionPointTarget
the base class for the description of single execution point target at which validations are to be triggered. Instances of execution point targets are contained as a collection in an execution point descriptor. The execution point target, along with some information from the execution point descriptor, is used to create instances of execution points. Execution points are the run-time embodiment of the execution point targets.
Currently, there are three execution point targets that are supported:
In ACTF, the first type of execution point descriptor is only meaningful in the context of an aspect-oriented programming environment in which validation code can be woven into the target class at the appropriate point of invocation. The other types can be implemented via listeners and proxies handled via the Java Reflection API.
Note: The API and functionality of tihs class and its subclasses is incomplete.
Field Summary | |
---|---|
protected boolean |
isPointcutExpression
|
protected boolean |
isPolymorphic
|
protected String |
targetClassName
|
protected int |
type
|
Constructor Summary | |
---|---|
ExecutionPointTarget(String targetClassName,
boolean polymorphic,
int type)
Create the parent execution point target. |
Method Summary | |
---|---|
boolean |
getPolymorphic()
|
String |
getTargetClassName()
|
int |
getType()
|
boolean |
isPointcutExpression()
returns whether or not the targetClassName actually represents a pointcut expression. |
void |
setPolymorphic(boolean polymorphic)
|
void |
setTargetClassName(String targetClassName)
name of class whose instances may trigger validations. |
void |
setType(int type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String targetClassName
protected int type
protected boolean isPolymorphic
protected boolean isPointcutExpression
Constructor Detail |
---|
public ExecutionPointTarget(String targetClassName, boolean polymorphic, int type)
raven:method
element, or event-based, defined by a raven:event
element.
targetClassName
- - name of class whose instances are to be capturedpolymorphic
- - boolean that defines whether this execution point target applies to just
this target or also to classes in it's hierarchytype
- - type of execution point descriptorExecutionPointTarget(String, boolean, int)
,
#MethodExecutionPointTarget()
Method Detail |
---|
public String getTargetClassName()
public void setTargetClassName(String targetClassName)
null
.
targetClassName
- - name of class whose instances may trigger validationspublic int getType()
public void setType(int type)
type
- - type of execution point target
IllegalArgumentException
- if type is not one of the pre-defined constants for this classpublic boolean isPointcutExpression()
true
if target class name represents a pointcut expressionsetTargetClassName(String)
public boolean getPolymorphic()
public void setPolymorphic(boolean polymorphic)
polymorphic
- - whether this execution point descriptor is polymorphic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |