felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1664930 - /felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependency-configuration.mdtext
Date Sat, 07 Mar 2015 23:18:18 GMT
Author: pderop
Date: Sat Mar  7 23:18:17 2015
New Revision: 1664930

URL: http://svn.apache.org/r1664930
Log:
Fixed formatting.

Modified:
    felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependency-configuration.mdtext

Modified: felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependency-configuration.mdtext
URL: http://svn.apache.org/viewvc/felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependency-configuration.mdtext?rev=1664930&r1=1664929&r2=1664930&view=diff
==============================================================================
--- felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependency-configuration.mdtext
(original)
+++ felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependency-configuration.mdtext
Sat Mar  7 23:18:17 2015
@@ -83,36 +83,36 @@ another pid for a second "global" config
       */
     @Component
     class MyComponent {
-      private Dictionary m_config;
+        private Dictionary m_config;
       
-      // Inject initial Configuration (injected before any other required dependencies)
-      @ConfigurationDependency
-      void componentConfiguration(Dictionary config) {
-           // you must throw an exception if the configuration is not valid
-           m_config = config;
-      }
+        // Inject initial Configuration (injected before any other required dependencies)
+        @ConfigurationDependency
+        void componentConfiguration(Dictionary config) {
+            // you must throw an exception if the configuration is not valid
+            m_config = config;
+        }
       
-      /**
-       * All unnamed dependencies are injected: we can now configure our dynamic configuration
whose dependency name is "global".
-       */
-      @Init
-      Map init() {
-          return new HashMap() {{
-              put("global.pid", m_config.get("globalConfig.pid"));
-              put("global.propagate", m_config.get("globalConfig.propagate"));
-          }};
-      } 
+       /**
+        * All unnamed dependencies are injected: we can now configure our dynamic configuration
whose dependency name is "global".
+        */
+       @Init
+       Map init() {
+           return new HashMap() {{
+               put("global.pid", m_config.get("globalConfig.pid"));
+               put("global.propagate", m_config.get("globalConfig.propagate"));
+           }};
+       } 
  
-      // Injected after init, and dynamically configured by the init method.
-      @ConfigurationDependency(name="global")
-      void globalConfiguration(Dictionary globalConfig) {
+       // Injected after init, and dynamically configured by the init method.
+       @ConfigurationDependency(name="global")
+       void globalConfiguration(Dictionary globalConfig) {
            // you must throw an exception if the configuration is not valid
-      }
+       }
  
-      /**
-       * All dependencies are injected and our service is now ready to be published.
-       */
-      @Start
-      void start() {
-      }
-  }
+       /**
+        * All dependencies are injected and our service is now ready to be published.
+        */
+       @Start
+       void start() {
+       }
+    }



Mime
View raw message