Package org.jboss.proxy

Examples of org.jboss.proxy.GenericProxyFactory


      String proxyBindingName,
      ClassLoader loader,
      Class[] ifaces
   )
   {
      GenericProxyFactory proxyFactory = new GenericProxyFactory();
      theProxy = proxyFactory.createProxy(cacheID, getServiceName(), invokerName,
         jndiName, proxyBindingName, interceptorClasses, loader, ifaces);
   }
View Full Code Here


/* 252 */     this.interceptorClasses.clear();
/*     */   }
/*     */
/*     */   protected void createProxy(Object cacheID, String proxyBindingName, ClassLoader loader, Class[] ifaces)
/*     */   {
/* 263 */     GenericProxyFactory proxyFactory = new GenericProxyFactory();
/* 264 */     this.theProxy = proxyFactory.createProxy(cacheID, getServiceName(), this.invokerName, this.jndiName, proxyBindingName, this.interceptorClasses, loader, ifaces);
/*     */   }
View Full Code Here

/*     */   public Object getProxy(Object id)
/*     */   {
/* 175 */     Class[] ifaces = { this.exportedInterface };
/* 176 */     ArrayList interceptorClasses = null;
/* 177 */     ClassLoader loader = Thread.currentThread().getContextClassLoader();
/* 178 */     GenericProxyFactory proxyFactory = new GenericProxyFactory();
/* 179 */     Object newProxy = null;
/*     */
/* 184 */     return newProxy;
/*     */   }
View Full Code Here

/* 207 */     Class[] ifaces = { this.exportedInterface };
/*     */
/* 210 */     if (this.interceptorClasses == null)
/* 211 */       this.interceptorClasses = defineDefaultInterceptors();
/* 212 */     ClassLoader loader = Thread.currentThread().getContextClassLoader();
/* 213 */     GenericProxyFactory proxyFactory = new GenericProxyFactory();
/* 214 */     this.theProxy = proxyFactory.createProxy(cacheID, this.jmxInvokerName, delegateInvoker, this.jndiName, proxyBindingName, this.interceptorClasses, loader, ifaces);
/*     */
/* 217 */     this.log.debug("Created HttpInvokerProxy for invoker=" + this.jmxInvokerName + ", nameHash=" + nameHash);
/*     */
/* 220 */     if (this.jndiName != null)
/*     */     {
View Full Code Here

/*     */
/* 285 */     ArrayList interceptorClasses = new ArrayList();
/* 286 */     interceptorClasses.add(ClientMethodInterceptor.class);
/* 287 */     interceptorClasses.add(InvokerInterceptor.class);
/* 288 */     ClassLoader loader = Thread.currentThread().getContextClassLoader();
/* 289 */     GenericProxyFactory proxyFactory = new GenericProxyFactory();
/* 290 */     this.theProxy = proxyFactory.createProxy(cacheID, targetName, this.delegateInvoker, jndiName, proxyBindingName, interceptorClasses, loader, ifaces);
/*     */
/* 293 */     log.debug("Created proxy for invoker=" + this.jmxInvokerName + ", targetName=" + targetName + ", nameHash=" + nameHash);
/*     */   }
View Full Code Here

/* 490 */     Class[] ifaces = { Connection.class };
/* 491 */     ArrayList interceptorClasses = new ArrayList();
/* 492 */     interceptorClasses.add(ClientMethodInterceptor.class);
/* 493 */     interceptorClasses.add(InvokerInterceptor.class);
/* 494 */     ClassLoader loader = Thread.currentThread().getContextClassLoader();
/* 495 */     GenericProxyFactory proxyFactory = new GenericProxyFactory();
/* 496 */     Object connProxy = proxyFactory.createProxy(cacheID, targetName, this.delegateInvoker, jndiName, proxyBindingName, interceptorClasses, loader, ifaces);
/*     */
/* 499 */     this.connectionMap.put(cacheID, conn);
/* 500 */     log.debug("Created Connection proxy for invoker=" + this.jmxInvokerName + ", targetName=" + targetName + ", cacheID=" + cacheID);
/*     */
/* 502 */     return connProxy;
View Full Code Here

/* 513 */     ArrayList interceptorClasses = new ArrayList();
/* 514 */     interceptorClasses.add(StatementInterceptor.class);
/* 515 */     interceptorClasses.add(ClientMethodInterceptor.class);
/* 516 */     interceptorClasses.add(InvokerInterceptor.class);
/* 517 */     ClassLoader loader = Thread.currentThread().getContextClassLoader();
/* 518 */     GenericProxyFactory proxyFactory = new GenericProxyFactory();
/* 519 */     Object stmtProxy = proxyFactory.createProxy(cacheID, targetName, this.delegateInvoker, jndiName, proxyBindingName, interceptorClasses, loader, ifaces);
/*     */
/* 522 */     this.statementMap.put(cacheID, stmt);
/* 523 */     log.debug("Created Statement proxy for invoker=" + this.jmxInvokerName + ", targetName=" + targetName + ", cacheID=" + cacheID);
/*     */
/* 525 */     return stmtProxy;
View Full Code Here

/*     */
/* 537 */     ArrayList interceptorClasses = new ArrayList();
/* 538 */     interceptorClasses.add(ClientMethodInterceptor.class);
/* 539 */     interceptorClasses.add(InvokerInterceptor.class);
/* 540 */     ClassLoader loader = Thread.currentThread().getContextClassLoader();
/* 541 */     GenericProxyFactory proxyFactory = new GenericProxyFactory();
/* 542 */     Object resultsProxy = proxyFactory.createProxy(cacheID, targetName, this.delegateInvoker, jndiName, proxyBindingName, interceptorClasses, loader, ifaces);
/*     */
/* 545 */     this.resultSetMap.put(cacheID, results);
/* 546 */     log.debug("Created ResultSet proxy for invoker=" + this.jmxInvokerName + ", targetName=" + targetName + ", cacheID=" + cacheID);
/*     */
/* 548 */     return resultsProxy;
View Full Code Here

/* 557 */     Class[] ifaces = results.getClass().getInterfaces();
/* 558 */     ArrayList interceptorClasses = new ArrayList();
/* 559 */     interceptorClasses.add(ClientMethodInterceptor.class);
/* 560 */     interceptorClasses.add(InvokerInterceptor.class);
/* 561 */     ClassLoader loader = Thread.currentThread().getContextClassLoader();
/* 562 */     GenericProxyFactory proxyFactory = new GenericProxyFactory();
/* 563 */     Object resultsProxy = proxyFactory.createProxy(cacheID, targetName, this.delegateInvoker, jndiName, proxyBindingName, interceptorClasses, loader, ifaces);
/*     */
/* 566 */     this.lobMap.put(cacheID, results);
/* 567 */     log.debug("Created LOB proxy for invoker=" + this.jmxInvokerName + ", targetName=" + targetName + ", cacheID=" + cacheID);
/*     */
/* 569 */     return resultsProxy;
View Full Code Here

/* 578 */     Class[] ifaces = { DatabaseMetaData.class };
/* 579 */     ArrayList interceptorClasses = new ArrayList();
/* 580 */     interceptorClasses.add(ClientMethodInterceptor.class);
/* 581 */     interceptorClasses.add(InvokerInterceptor.class);
/* 582 */     ClassLoader loader = Thread.currentThread().getContextClassLoader();
/* 583 */     GenericProxyFactory proxyFactory = new GenericProxyFactory();
/* 584 */     Object dbMetaDataProxy = proxyFactory.createProxy(cacheID, targetName, this.delegateInvoker, jndiName, proxyBindingName, interceptorClasses, loader, ifaces);
/*     */
/* 587 */     this.databaseMetaDataMap.put(cacheID, dbMetaData);
/* 588 */     log.debug("Created DatabaseMetadata proxy for invoker=" + this.jmxInvokerName + ", targetName=" + targetName + ", cacheID=" + cacheID);
/*     */
/* 590 */     return dbMetaDataProxy;
View Full Code Here

TOP

Related Classes of org.jboss.proxy.GenericProxyFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.