package org.gcube.vremanagement.vremodeler.impl; import org.gcube.common.core.contexts.GCUBEServiceContext; public class ServiceContext extends GCUBEServiceContext{ /** Single context instance, created eagerly */ private static ServiceContext cache = new ServiceContext(); /** Returns cached instance */ public static ServiceContext getContext() {return cache;} /** Prevents accidental creation of more instances */ private ServiceContext(){}; /** {@inheritDoc} */ protected String getJNDIName() {return "gcube/vdlmanagement/vdlmodeler";} protected void onReady() throws Exception{ logger.info("ready event invoked on " + this.getName()); } }