added spring boot example using msb java sdk
[msb/java-sdk.git] / example-spring-boot / src / main / java / org / onap / msb / sdk / example / springboot / ContextRefreshedListener.java
index 9f3e532..2c4cc45 100644 (file)
@@ -1,9 +1,11 @@
 /*******************************************************************************
  * Copyright 2017 Infosys Limited and others.
- *------------------------------------------------------------------------------
+ *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  * in compliance with the License. You may obtain a copy of the License at
+ *
  * http://www.apache.org/licenses/LICENSE-2.0
+ *
  * Unless required by applicable law or agreed to in writing, software distributed under the License
  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  * or implied. See the License for the specific language governing permissions and limitations under
@@ -28,11 +30,11 @@ public class ContextRefreshedListener implements ApplicationListener<ContextRefr
 
         MSBServiceClient msbClient = new MSBServiceClient(MSB_IP, MSB_Port);
         MsbHelper helper = new MsbHelper(msbClient);
-        
+
         try {
-                       helper.registerMsb();
-               } catch (Exception e) {
-                       e.printStackTrace();
-               }
+               helper.registerMsb();
+        } catch (Exception e) {
+               e.printStackTrace();
+        }
     }
 }
\ No newline at end of file