Spring Framework OverridingClassLoader - 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 OverridingClassLoader class.

This code example shows how to use the following methods:
	/** 
	 * Create a new SimpleThrowawayClassLoader for the given ClassLoader. 
	 * @param parent the ClassLoader to build a throwaway ClassLoader for 
	 */ 
	public SimpleThrowawayClassLoader(ClassLoader parent) {
		super(parent);
	} 
 
} 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
	/** 
	 * Create a new SimpleInstrumentableClassLoader for the given ClassLoader. 
	 * @param parent the ClassLoader to build an instrumentable ClassLoader for 
	 */ 
	public SimpleInstrumentableClassLoader(ClassLoader parent) {
		super(parent);
		this.weavingTransformer = new WeavingTransformer(parent);
	} 
 
 
	/** 
	 * Add a {@link ClassFileTransformer} to be applied by this ClassLoader. 
	 * @param transformer the {@link ClassFileTransformer} to register 
	 */ 
	public void addTransformer(ClassFileTransformer transformer) {
		this.weavingTransformer.addTransformer(transformer);
	} 
 
 
	@Override 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
	 * Caches class file content but redefines class for each call. 
	 */ 
	private class ContextOverridingClassLoader extends OverridingClassLoader {
 
		public ContextOverridingClassLoader(ClassLoader parent) {
			super(parent);
		} 
 
		@Override 
		protected boolean isEligibleForOverriding(String className) {
			if (isExcluded(className) || ContextTypeMatchClassLoader.this.isExcluded(className)) {
				return false; 
			} 
			ReflectionUtils.makeAccessible(findLoadedClassMethod);
			ClassLoader parent = getParent();
			while (parent != null) {
				if (ReflectionUtils.invokeMethod(findLoadedClassMethod, parent, className) != null) {
					return false; 
				} 
				parent = parent.getParent();
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java