Author: jmarino
Date: Mon Jan  1 10:21:45 2007
New Revision: 491606

URL: http://svn.apache.org/viewvc?view=rev&rev=491606
Log:
formatting fixes for checkstyle

Modified:
    
incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java

Modified: 
incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java?view=diff&rev=491606&r1=491605&r2=491606
==============================================================================
--- 
incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java
 (original)
+++ 
incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java
 Mon Jan  1 10:21:45 2007
@@ -58,7 +58,7 @@
  * @version $$Rev$$ $$Date$$
  */
 public abstract class CompositeComponentExtension extends 
AbstractComponentExtension implements CompositeComponent {
-    
+
     protected final Map<String, SCAObject> children = new 
ConcurrentHashMap<String, SCAObject>();
     protected final List<Service> services = new ArrayList<Service>();
     protected final List<Reference> references = new ArrayList<Reference>();
@@ -80,7 +80,7 @@
      * Management service to use.
      */
     private ManagementService managementService;
-    
+
     protected CompositeComponentExtension(String name,
                                           CompositeComponent parent,
                                           Connector connector,
@@ -89,9 +89,10 @@
         this.propertyValues = propertyValues;
         this.connector = connector;
     }
-    
+
     /**
      * Autowires the management service.
+     *
      * @param managementService Management service used for registering 
components.
      */
     @Autowire
@@ -169,7 +170,7 @@
             children.put(child.getName(), child);
         }
         if (child instanceof Service) {
-            Service service = (Service)child;
+            Service service = (Service) child;
             synchronized (services) {
                 if (service.isSystem()) {
                     systemServices.add(service);
@@ -179,7 +180,7 @@
             }
             registerAutowire(service);
         } else if (child instanceof Reference) {
-            Reference reference = (Reference)child;
+            Reference reference = (Reference) child;
             synchronized (references) {
                 if (reference.isSystem()) {
                     systemReferenceBindings.add(reference);
@@ -189,13 +190,13 @@
             }
             registerAutowire(reference);
         } else if (child instanceof AtomicComponent) {
-            AtomicComponent atomic = (AtomicComponent)child;
+            AtomicComponent atomic = (AtomicComponent) child;
             registerAutowire(atomic);
-            if(managementService != null) {
+            if (managementService != null) {
                 managementService.registerComponent(atomic.getName(), atomic);
             }
         } else if (child instanceof CompositeComponent) {
-            CompositeComponent component = (CompositeComponent)child;
+            CompositeComponent component = (CompositeComponent) child;
             if (lifecycleState == RUNNING && component.getLifecycleState() == 
UNINITIALIZED) {
                 component.start();
             }
@@ -225,7 +226,7 @@
         if (!(object instanceof Service)) {
             return null;
         }
-        Service service = (Service)object;
+        Service service = (Service) object;
         for (ServiceBinding binding : service.getServiceBindings()) {
             InboundWire wire = binding.getInboundWire();
             if (bindingType.equals(wire.getBindingType())) {
@@ -250,7 +251,7 @@
     public Service getService(String name) {
         SCAObject object = children.get(name);
         if (object instanceof Service) {
-            return (Service)object;
+            return (Service) object;
         }
         return null;
     }
@@ -258,7 +259,7 @@
     public Service getSystemService(String name) {
         SCAObject object = systemChildren.get(name);
         if (object instanceof Service) {
-            return (Service)object;
+            return (Service) object;
         }
         return null;
     }
@@ -393,7 +394,8 @@
             // pick the first binding until autowire allows multiple interfaces
             InboundWire wire = bindings.get(0).getInboundWire();
             if 
(!interfaze.isAssignableFrom(wire.getServiceContract().getInterfaceClass())) {
-                throw new InvalidAutowireInterface("Matching inbound wire not 
found for interface", interfaze.getName());
+                throw new InvalidAutowireInterface("Matching inbound wire not 
found for interface",
+                    interfaze.getName());
             }
             systemAutowireExternal.put(interfaze, wire);
         } else {
@@ -415,7 +417,8 @@
         }
     }
 
-    protected void registerAutowireInternal(Class<?> interfaze, ServiceBinding 
binding) throws InvalidAutowireInterface {
+    protected void registerAutowireInternal(Class<?> interfaze, ServiceBinding 
binding)
+        throws InvalidAutowireInterface {
         if (interfaze == null) {
             // The ServiceContract is not from Java
             return;
@@ -454,7 +457,8 @@
             // pick the first binding until autowire allows multiple interfaces
             InboundWire wire = bindings.get(0).getInboundWire();
             if 
(!interfaze.isAssignableFrom(wire.getServiceContract().getInterfaceClass())) {
-                throw new InvalidAutowireInterface("Matching inbound wire not 
found for interface", interfaze.getName());
+                throw new InvalidAutowireInterface("Matching inbound wire not 
found for interface",
+                    interfaze.getName());
             }
             systemAutowireInternal.put(interfaze, wire);
         } else {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to