[jboss-cvs] JBossAS SVN: r61307 - branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/stateless.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 13 15:42:59 EDT 2007


Author: bdecoste
Date: 2007-03-13 15:42:58 -0400 (Tue, 13 Mar 2007)
New Revision: 61307

Modified:
   branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/stateless/StatelessRemoteProxyFactory.java
Log:
code formatting

Modified: branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/stateless/StatelessRemoteProxyFactory.java
===================================================================
--- branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/stateless/StatelessRemoteProxyFactory.java	2007-03-13 19:38:28 UTC (rev 61306)
+++ branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/stateless/StatelessRemoteProxyFactory.java	2007-03-13 19:42:58 UTC (rev 61307)
@@ -51,11 +51,13 @@
 
    protected InvokerLocator locator;
 
-   public void setRemoteBinding(RemoteBinding binding) {
+   public void setRemoteBinding(RemoteBinding binding)
+   {
       this.binding = binding;
    }
 
-   protected Class[] getInterfaces() {
+   protected Class[] getInterfaces()
+   {
       Class[] interfaces;
       
       StatelessContainer statelessContainer = (StatelessContainer) container;
@@ -89,27 +91,33 @@
       return ProxyFactoryHelper.getHomeJndiName(container).equals(ProxyFactoryHelper.getRemoteJndiName(container));
    }
 
-   protected void initializeJndiName() {
+   protected void initializeJndiName()
+   {
       jndiName = ProxyFactoryHelper.getRemoteJndiName(container, binding);
    }
 
-   public void init() throws Exception {
+   public void init() throws Exception
+   {
       super.init();
       String clientBindUrl = ProxyFactoryHelper.getClientBindUrl(binding);
       locator = new InvokerLocator(clientBindUrl);
    }
 
-   public void start() throws Exception {
+   public void start() throws Exception
+   {
       super.start();
       EJBContainer statelessContainer = (EJBContainer) container;
       RemoteHome remoteHome = (RemoteHome) statelessContainer
             .resolveAnnotation(RemoteHome.class);
-      if (remoteHome != null && !bindHomeAndBusinessTogether(statelessContainer)) {
+      if (remoteHome != null && !bindHomeAndBusinessTogether(statelessContainer))
+      {
          Object homeProxy = createHomeProxy(remoteHome.value());
          try {
             Util.rebind(container.getInitialContext(), ProxyFactoryHelper
                   .getHomeJndiName(container), homeProxy);
-         } catch (NamingException e) {
+         }
+         catch (NamingException e)
+         {
             NamingException namingException = new NamingException(
                   "Could not bind stateless home proxy with ejb name "
                         + container.getEjbName()
@@ -123,18 +131,21 @@
       }
    }
 
-   public void stop() throws Exception {
+   public void stop() throws Exception
+   {
       super.stop();
       EJBContainer statelessContainer = (EJBContainer) container;
       RemoteHome remoteHome = (RemoteHome) statelessContainer
             .resolveAnnotation(RemoteHome.class);
-      if (remoteHome != null && !bindHomeAndBusinessTogether(statelessContainer)) {
+      if (remoteHome != null && !bindHomeAndBusinessTogether(statelessContainer))
+      {
          Util.unbind(container.getInitialContext(), ProxyFactoryHelper
                .getHomeJndiName(container));
       }
    }
 
-   protected StatelessHandleImpl getHandle() {
+   protected StatelessHandleImpl getHandle()
+   {
       StatelessHandleImpl handle = new StatelessHandleImpl();
       RemoteBinding remoteBinding = (RemoteBinding) advisor
             .resolveAnnotation(RemoteBinding.class);
@@ -144,13 +155,15 @@
       return handle;
    }
 
-   public Object createHomeProxy(Class homeInterface) {
+   public Object createHomeProxy(Class homeInterface)
+   {
       try {
          Object containerId = container.getObjectName().getCanonicalName();
          ;
          String stackName = "StatelessSessionClientInterceptors";
          if (binding.interceptorStack() != null
-               && !binding.interceptorStack().equals("")) {
+               && !binding.interceptorStack().equals(""))
+         {
             stackName = binding.interceptorStack();
          }
          AdviceStack stack = AspectManager.instance().getAdviceStack(stackName);
@@ -160,20 +173,23 @@
          Class[] interfaces = { homeInterface };
          return java.lang.reflect.Proxy.newProxyInstance(container
                .getBeanClass().getClassLoader(), interfaces, proxy);
-      } catch (IllegalArgumentException e) {
+      } catch (IllegalArgumentException e)
+      {
          throw new RuntimeException(e); // To change body of catch statement
                                           // use Options | File Templates.
       }
    }
 
-   public Object createProxy() {
+   public Object createProxy()
+   {
       // try
       {
          Object containerId = container.getObjectName().getCanonicalName();
          ;
          String stackName = "StatelessSessionClientInterceptors";
          if (binding.interceptorStack() != null
-               && !binding.interceptorStack().equals("")) {
+               && !binding.interceptorStack().equals(""))
+         {
             stackName = binding.interceptorStack();
          }
          AdviceStack stack = AspectManager.instance().getAdviceStack(stackName);




More information about the jboss-cvs-commits mailing list