#823 - Adding OkHttp dependency. Initial setup of JavaFileSource as a singleton class.

This commit is contained in:
Brad Leege
2015-02-25 16:25:03 -06:00
parent 9795b7f476
commit 885185b352
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package com.mapbox.mapboxgl.lib.util;
public class JavaFileSource {
private static JavaFileSource instance = null;
/**
* Private Constructor to support Singleton pattern
*/
private JavaFileSource() {
super();
}
/**
* Get the singleton instance of JavaFileSource
* @return Reference to the Singleton Instance of JavaFileSource
*/
public static JavaFileSource getInstance() {
if (instance == null) {
instance = new JavaFileSource();
}
return instance;
}
}