/** * Create a AdvisedSupport instance with the given parameters. * @param interfaces the proxied interfaces */ public AdvisedSupport(Class<?>... interfaces) { this(); setInterfaces(interfaces); }
if (targetClass != null) { if (targetClass.isInterface()) { advised.setInterfaces(targetClass); advised.setInterfaces(targetClass.getInterfaces());
/** * Create a AdvisedSupport instance with the given parameters. * @param interfaces the proxied interfaces */ public AdvisedSupport(Class<?>... interfaces) { this(); setInterfaces(interfaces); }
/** * Create a AdvisedSupport instance with the given parameters. * @param interfaces the proxied interfaces */ public AdvisedSupport(Class<?>... interfaces) { this(); setInterfaces(interfaces); }
/** * Create a DefaultProxyConfig with the given parameters. * @param interfaces the proxied interfaces */ public AdvisedSupport(Class[] interfaces) { this(); setInterfaces(interfaces); }
/** * Take interfaces and ProxyConfig configuration from the * other AdvisedSupport, but allow substitution of a fresh * TargetSource and interceptor chain * @param other other AdvisedSupport object to take * interfaces and ProxyConfig superclass configuration from * @param ts new TargetSource * @param pAdvisors new Advisor chain */ protected void copyConfigurationFrom(AdvisedSupport other, TargetSource ts, List pAdvisors) { copyFrom(other); this.targetSource = ts; setInterfaces((Class[]) other.interfaces.toArray(new Class[other.interfaces.size()])); this.advisors = new LinkedList(); for (int i = 0; i < pAdvisors.size(); i++) { Advisor advice = (Advisor) pAdvisors.get(i); addAdvisor(advice); } }
if (targetClass != null) { if (targetClass.isInterface()) { advised.setInterfaces(targetClass); advised.setInterfaces(targetClass.getInterfaces());
if (targetClass != null) { if (targetClass.isInterface()) { advised.setInterfaces(targetClass); advised.setInterfaces(targetClass.getInterfaces());