Java Code Examples for org.springframework.cglib.core.Constants#EMPTY_CLASS_ARRAY

The following examples show how to use org.springframework.cglib.core.Constants#EMPTY_CLASS_ARRAY . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: spring-analysis-note   File: Enhancer.java    License: MIT License 5 votes vote down vote up
protected Object nextInstance(Object instance) {
	EnhancerFactoryData data = (EnhancerFactoryData) instance;

	if (classOnly) {
		return data.generatedClass;
	}

	Class[] argumentTypes = this.argumentTypes;
	Object[] arguments = this.arguments;
	if (argumentTypes == null) {
		argumentTypes = Constants.EMPTY_CLASS_ARRAY;
		arguments = null;
	}
	return data.newInstance(argumentTypes, arguments, callbacks);
}
 
Example 2
Source Project: java-technology-stack   File: Enhancer.java    License: MIT License 5 votes vote down vote up
protected Object nextInstance(Object instance) {
	EnhancerFactoryData data = (EnhancerFactoryData) instance;

	if (classOnly) {
		return data.generatedClass;
	}

	Class[] argumentTypes = this.argumentTypes;
	Object[] arguments = this.arguments;
	if (argumentTypes == null) {
		argumentTypes = Constants.EMPTY_CLASS_ARRAY;
		arguments = null;
	}
	return data.newInstance(argumentTypes, arguments, callbacks);
}