Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ServiceUtil.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ServiceUtil.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ServiceUtil.java
index bb5402e8c73..5f049fcced7 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ServiceUtil.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/internal/ServiceUtil.java
@@ -30,6 +30,8 @@ import org.osgi.framework.BundleException;
public final class ServiceUtil {
+ private static IOseeCachingService cacheService;
+
private ServiceUtil() {
// Utility class
}
@@ -47,7 +49,10 @@ public final class ServiceUtil {
}
public static IOseeCachingService getOseeCacheService() throws OseeCoreException {
- return getService(IOseeCachingService.class);
+ if (cacheService == null) {
+ cacheService = getService(IOseeCachingService.class);
+ }
+ return cacheService;
}
public static AttributeAdapterService getAttributeAdapterService() throws OseeCoreException {

Back to the top