org.eclipse.actf.validation.javapp.aspects
Class InterJvmValidationAspect

java.lang.Object
  extended by org.eclipse.actf.validation.javapp.aspects.BaseValidationAspect
      extended by org.eclipse.actf.validation.javapp.aspects.InterJvmValidationAspect

public abstract class InterJvmValidationAspect
extends BaseValidationAspect

provides basic services and validation advice to classes that are to be validated by ACTF. This class is the base implementation for any ValidationAspect class that is to be used by a distinct JVM from that JVM hosting the launching framework. The model-specific ValidationAspect implementations are instantiated by the AOP engine and should not be instantiated by client applications.

Author:
Mike Squillace

Field Summary
protected  ClassLoaderCache clCache
           
protected  ResourceClient client
           
protected  String creationContextsProcessing
           
static long DEFAULT_TIMEOUT
           
static String REPORT_ID_FIELDNAME
           
 
Fields inherited from class org.eclipse.actf.validation.javapp.aspects.BaseValidationAspect
model, valConfig
 
Constructor Summary
InterJvmValidationAspect(String modelName)
          instantiate an aspect.
 
Method Summary
protected  void checkThreadCount()
           
protected  void doRunValidation(Object target)
           
protected  void doShutdown()
           
protected  Object getActualTarget(Object target)
           
protected  String getReportID()
           
protected  void processCreationContexts(ValidationReportRecord[] records)
          find the creation contexts for components with violations only.
protected  void runValidationWorker(Object target)
           
 void setReportID(String id)
           
protected  void startValidationThread(Object target)
           
 
Methods inherited from class org.eclipse.actf.validation.javapp.aspects.BaseValidationAspect
cacheCreationContext, findCreationContexts, getObjectId, isIgnorable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIMEOUT

public static final long DEFAULT_TIMEOUT
See Also:
Constant Field Values

REPORT_ID_FIELDNAME

public static final String REPORT_ID_FIELDNAME
See Also:
Constant Field Values

clCache

protected ClassLoaderCache clCache

client

protected ResourceClient client

creationContextsProcessing

protected String creationContextsProcessing
Constructor Detail

InterJvmValidationAspect

public InterJvmValidationAspect(String modelName)
instantiate an aspect. Notice that aspects are usually instantiated by AOP engines and not directly from within code. This base constructor does the following:

Method Detail

processCreationContexts

protected void processCreationContexts(ValidationReportRecord[] records)
find the creation contexts for components with violations only. This method should only be called if the Configuration.CREATION_CONTEXTS_PROCESSING_KEY is set to Configuration.PROCESS_VIOLATING_COMPONENTS.

Parameters:
records - - report records

startValidationThread

protected void startValidationThread(Object target)

runValidationWorker

protected void runValidationWorker(Object target)

getActualTarget

protected Object getActualTarget(Object target)

doRunValidation

protected void doRunValidation(Object target)

getReportID

protected String getReportID()

setReportID

public void setReportID(String id)

checkThreadCount

protected void checkThreadCount()

doShutdown

protected void doShutdown()