Created
March 16, 2017 17:59
-
-
Save kinathru/a3319a1d78cc91e2ced054e98eb24dd3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kinath.interwar; | |
import org.springframework.context.annotation.Configuration; | |
/** | |
* Created by Kinath on 3/15/2017. | |
*/ | |
@Configuration | |
public class GroundServiceConfig | |
{ | |
private static boolean initialized; | |
public GroundServiceConfig() | |
{ | |
if( initialized ) | |
{ | |
return; | |
} | |
initialized = true; | |
if( ServiceHandler.getiGroundService() == null ) | |
{ | |
ServiceHandler.setiGroundService( new GroundServiceAdapter() ); | |
System.out.println("\n\n################################################"); | |
System.out.println("Service Handler set Ground Service Successfully"); | |
System.out.println("################################################\n\n"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment