|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.javapp.aspects.BaseValidationAspect
public abstract class BaseValidationAspect
base class for all aspects in ACTF. Direct subclasses of this class should be extended by clients writing their own aspects.
Field Summary | |
---|---|
protected IModel |
model
|
protected IConfiguration |
valConfig
|
Constructor Summary | |
---|---|
BaseValidationAspect(String modelName)
instantiated by AOP engine |
Method Summary | |
---|---|
protected void |
cacheCreationContext(Object newObj,
Object member,
Exception exception)
|
protected CreationContext[] |
findCreationContexts(ValidationReportRecord[] records)
find the creation contexts for the given records. |
protected String |
getObjectId(Object obj)
forms and caches the creation context for an instantiated element. |
protected boolean |
isIgnorable(StackTraceElement element)
returns whether or not this trace element should be included in the stack trace used to form the creation context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IConfiguration valConfig
protected IModel model
Constructor Detail |
---|
public BaseValidationAspect(String modelName)
Method Detail |
---|
protected String getObjectId(Object obj)
System.identityHashCode(newObj)
. This method
also forces the server to fire a creationContextStarted event.
newObj
- - newly instantiated objectmember
- - member used to instantiated objectexception
- - exception holding trace leading to instantiationprotected void cacheCreationContext(Object newObj, Object member, Exception exception)
protected boolean isIgnorable(StackTraceElement element)
element
- - stack trace element to be tested
true
if element can be left out of stack traceprotected CreationContext[] findCreationContexts(ValidationReportRecord[] records)
records
- - report records
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |