Spring Framework InstrumentationLoadTimeWeaver - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework InstrumentationLoadTimeWeaver class.

This code example shows how to use the following methods:
	} 
 
	public static void enableAspectJWeaving(LoadTimeWeaver weaverToUse, ClassLoader beanClassLoader) {
		if (weaverToUse == null) {
			if (InstrumentationLoadTimeWeaver.isInstrumentationAvailable()) {
				weaverToUse = new InstrumentationLoadTimeWeaver(beanClassLoader);
			} 
			else { 
				throw new IllegalStateException("No LoadTimeWeaver available");
			} 
		} 
		weaverToUse.addTransformer(new AspectJClassBypassingClassFileTransformer(
					new ClassPreProcessorAgentAdapter())); 
	} 
 
 
	/** 
	 * ClassFileTransformer decorator that suppresses processing of AspectJ 
	 * classes in order to avoid potential LinkageErrors. 
	 * @see org.springframework.context.annotation.LoadTimeWeavingConfiguration 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:removeTransformers
	@Override 
	public void destroy() { 
		if (this.loadTimeWeaver instanceof InstrumentationLoadTimeWeaver) {
			logger.info("Removing all registered transformers for class loader: " +
					this.loadTimeWeaver.getInstrumentableClassLoader().getClass().getName());
			((InstrumentationLoadTimeWeaver) this.loadTimeWeaver).removeTransformers();
		} 
	} 
 
 
	@Override 
	public void addTransformer(ClassFileTransformer transformer) {
		this.loadTimeWeaver.addTransformer(transformer);
	} 
 
	@Override 
	public ClassLoader getInstrumentableClassLoader() {
		return this.loadTimeWeaver.getInstrumentableClassLoader();
	} 
 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
        return new PersistenceExceptionTranslationPostProcessor(); 
    } 
     
    @Bean 
    public LoadTimeWeaver gpLoadTimeWeaver() { 
        return new InstrumentationLoadTimeWeaver(); 
    } 
} 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Spring Framework InstrumentationLoadTimeWeaver Methods: