Code examples for org.springframework.cglib.proxy.Enhancer

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
		/** 
		 * Create an enhanced subclass of the bean class for the provided bean 
		 * definition, using CGLIB. 
		 */ 
		private Class<?> createEnhancedSubclass(RootBeanDefinition beanDefinition) { 
			Enhancer enhancer = new Enhancer(); 
			enhancer.setSuperclass(beanDefinition.getBeanClass()); 
			enhancer.setNamingPolicy(SpringNamingPolicy.INSTANCE); 
			enhancer.setCallbackFilter(new MethodOverrideCallbackFilter(beanDefinition)); 
			enhancer.setCallbackTypes(CALLBACK_TYPES); 
			return enhancer.createClass(); 
		} 
	} 
 
 
	/** 
	 * Class providing hashCode and equals methods required by CGLIB to 
	 * ensure that CGLIB doesn't generate a distinct class per bean. 
	 * Identity is based on class and bean definition. 
	 */ 
Full Snippet Info
7
CodeRank
	 * @param type 
	 * @return 
	 */ 
	private Class<?> getEnhancedTypeFor(Class<?> type) { 
 
		Enhancer enhancer = new Enhancer(); 
		enhancer.setSuperclass(type); 
		enhancer.setCallbackType(org.springframework.cglib.proxy.MethodInterceptor.class); 
		enhancer.setInterfaces(new Class[] { LazyLoadingProxy.class }); 
 
		return enhancer.createClass(); 
	} 
 
	/** 
	 * Returns whether the property shall be resolved lazily. 
	 *  
	 * @param property must not be {@literal null}. 
	 * @return 
	 */ 
	private boolean isLazyDbRef(MongoPersistentProperty property) { 
Full Snippet Info
4
CodeRank