org.eclipse.actf.validation.javapp.aspects
Class InterJvmValidationAspect
java.lang.Object
org.eclipse.actf.validation.javapp.aspects.BaseValidationAspect
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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:
- adds a shutdown hook to the JVM to insure clean closing of sockets and the AOP engine
- establishes the tracing facility (if parameters dictate one)
- sets up a ResourceClient for receiving resource from the launching JVM
- initializes other essential members such as the configuration object and the ClassLoaderCache
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()