Example usage for org.springframework.util ClassUtils createCompositeInterface

List of usage examples for org.springframework.util ClassUtils createCompositeInterface

Introduction

In this page you can find the example usage for org.springframework.util ClassUtils createCompositeInterface.

Prototype

@SuppressWarnings("deprecation") 
public static Class<?> createCompositeInterface(Class<?>[] interfaces, @Nullable ClassLoader classLoader) 

Source Link

Document

Create a composite interface Class for the given interfaces, implementing the given interfaces in one single Class.

Usage

From source file:org.iff.infra.util.spring.script.ScriptFactoryPostProcessor.java

/**
 * Create a composite interface Class for the given interfaces,
 * implementing the given interfaces in one single Class.
 * <p>The default implementation builds a JDK proxy class
 * for the given interfaces./*  w  w  w  .  j  av a2 s .  c o  m*/
 * @param interfaces the interfaces to merge
 * @return the merged interface as Class
 * @see java.lang.reflect.Proxy#getProxyClass
 */
protected Class<?> createCompositeInterface(Class<?>[] interfaces) {
    return ClassUtils.createCompositeInterface(interfaces, this.beanClassLoader);
}

From source file:org.springframework.aop.framework.ProxyFactoryBean.java

/**
 * Create a composite interface Class for the given interfaces,
 * implementing the given interfaces in one single Class.
 * <p>The default implementation builds a JDK proxy class for the
 * given interfaces./*  w w  w  .j a  v a  2 s.  c o  m*/
 * @param interfaces the interfaces to merge
 * @return the merged interface as Class
 * @see java.lang.reflect.Proxy#getProxyClass
 */
protected Class<?> createCompositeInterface(Class<?>[] interfaces) {
    return ClassUtils.createCompositeInterface(interfaces, this.proxyClassLoader);
}