Package org.jboss.remoting.socketfactory

Examples of org.jboss.remoting.socketfactory.SocketCreationListener


/* 1348 */     if ((o instanceof String))
/*      */     {
/*      */       try
/*      */       {
/* 1352 */         Class c = ClassLoaderUtility.loadClass((String)o, ServerInvoker.class);
/* 1353 */         SocketCreationListener listener = (SocketCreationListener)c.newInstance();
/* 1354 */         return new CreationListenerServerSocketFactory(ssf, listener);
/*      */       }
/*      */       catch (Exception e)
/*      */       {
/* 1358 */         log.error("unable to instantiate class: " + o, e);
View Full Code Here


/* 358 */     if (o == null) {
/* 359 */       return socketFactory;
/*     */     }
/* 361 */     if ((o instanceof SocketCreationListener))
/*     */     {
/* 363 */       SocketCreationListener listener = (SocketCreationListener)o;
/* 364 */       return new CreationListenerSocketFactory(socketFactory, listener);
/*     */     }
/* 366 */     if ((o instanceof String))
/*     */     {
/*     */       try
/*     */       {
/* 370 */         Class c = ClassLoaderUtility.loadClass((String)o, AbstractInvoker.class);
/* 371 */         SocketCreationListener listener = (SocketCreationListener)c.newInstance();
/* 372 */         return new CreationListenerSocketFactory(socketFactory, listener);
/*     */       }
/*     */       catch (Exception e)
/*     */       {
/* 376 */         log.error("unable to instantiate class: " + o, e);
View Full Code Here

/* 564 */     Object o = this.configuration.get("socketCreationServerListener");
/* 565 */     if (o != null)
/*     */     {
/* 567 */       if ((o instanceof SocketCreationListener))
/*     */       {
/* 569 */         SocketCreationListener listener = (SocketCreationListener)o;
/* 570 */         if ((this.socketFactory instanceof CreationListenerSocketFactory))
/*     */         {
/* 572 */           CreationListenerSocketFactory clsf = (CreationListenerSocketFactory)this.socketFactory;
/* 573 */           clsf.setListener(listener);
/*     */         }
View Full Code Here

/* 599 */     Object o = this.configuration.get("socketCreationClientListener");
/* 600 */     if (o != null)
/*     */     {
/* 602 */       if ((o instanceof SocketCreationListener))
/*     */       {
/* 604 */         SocketCreationListener listener = (SocketCreationListener)o;
/* 605 */         if ((this.secondaryServerSocket instanceof CreationListenerServerSocket))
/*     */         {
/* 607 */           CreationListenerServerSocket clss = (CreationListenerServerSocket)this.secondaryServerSocket;
/* 608 */           clss.setListener(listener);
/*     */         }
View Full Code Here

      else if (o instanceof String)
      {
         try
         {
            Class c = ClassLoaderUtility.loadClass((String) o, ServerInvoker.class);
            SocketCreationListener listener = (SocketCreationListener)c.newInstance();
            return new CreationListenerServerSocketFactory(ssf, listener);
         }
         catch (Exception e)
         {
            log.warn("unable to instantiate class: " + o, e);
View Full Code Here

      else if (o instanceof String)
      {
         try
         {
            Class c = ClassLoaderUtility.loadClass((String) o, ServerInvoker.class);
            SocketCreationListener listener = (SocketCreationListener)c.newInstance();
            return new CreationListenerServerSocketFactory(ssf, listener);
         }
         catch (Exception e)
         {
            log.warn("unable to instantiate class: " + o, e);
View Full Code Here

      if (o == null)
         return socketFactory;
     
      if (o instanceof SocketCreationListener)
      {
         SocketCreationListener listener = (SocketCreationListener) o;
         return new CreationListenerSocketFactory(socketFactory, listener);
      }
      else if (o instanceof String)
      {
         try
         {
            Class c = ClassLoaderUtility.loadClass((String) o, AbstractInvoker.class);
            SocketCreationListener listener = (SocketCreationListener) c.newInstance();
            return new CreationListenerSocketFactory(socketFactory, listener);
         }
         catch (Exception e)
         {
            log.error("unable to instantiate class: " + o, e);
View Full Code Here

      else if (o instanceof String)
      {
         try
         {
            Class c = ClassLoaderUtility.loadClass((String) o, ServerInvoker.class);
            SocketCreationListener listener = (SocketCreationListener)c.newInstance();
            return new CreationListenerServerSocketFactory(ssf, listener);
         }
         catch (Exception e)
         {
            log.error("unable to instantiate class: " + o, e);
View Full Code Here

      Object o = configuration.get(Remoting.SOCKET_CREATION_SERVER_LISTENER);
      if (o != null)
      {
         if (o instanceof SocketCreationListener)
         {
            SocketCreationListener listener = (SocketCreationListener) o;
            if (socketFactory instanceof CreationListenerSocketFactory)
            {
               CreationListenerSocketFactory clsf = (CreationListenerSocketFactory) socketFactory;
               clsf.setListener(listener);
            }
View Full Code Here

      Object o = configuration.get(Remoting.SOCKET_CREATION_CLIENT_LISTENER);
      if (o != null)
      {
         if (o instanceof SocketCreationListener)
         {
            SocketCreationListener listener = (SocketCreationListener) o;
            if (secondaryServerSocket instanceof CreationListenerServerSocket)
            {
               CreationListenerServerSocket clss = (CreationListenerServerSocket) secondaryServerSocket;
               clss.setListener(listener);
            }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.socketfactory.SocketCreationListener

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.