/** * {@inheritDoc} */ @Override public boolean shouldAnalyzeOnStartup(String className) { if ((null != classHashHelper) && classHashHelper.isAnalyzed(className)) { InstrumentationDefinition instrumentationDefinition = classHashHelper.getInstrumentationDefinition(className); return (null != instrumentationDefinition) && !instrumentationDefinition.isEmpty(); } return true; }
/** * Registers the instrumentation result for the class with the given FQn. * * @param fqn * Class fully qualified name. * @param instrumentationResult * {@link InstrumentationDefinition} */ public void registerInstrumentationDefinition(String fqn, InstrumentationDefinition instrumentationResult) { ClassEntry entry = getOrCreateEntry(fqn); if ((null != instrumentationResult) && !instrumentationResult.isEmpty()) { entry.setInstrumentationResult(instrumentationResult); } else { entry.setInstrumentationResult(null); // NOPMD } }
if ((null == instrumentationResult) || instrumentationResult.isEmpty()) { return null;