Skip to content

Instantly share code, notes, and snippets.

@kinathru
Created March 16, 2017 17:59
Show Gist options
  • Save kinathru/a3319a1d78cc91e2ced054e98eb24dd3 to your computer and use it in GitHub Desktop.
Save kinathru/a3319a1d78cc91e2ced054e98eb24dd3 to your computer and use it in GitHub Desktop.
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