2008-04-22 14:11:53 +02:00
|
|
|
package org.gcube.vremanagement.vremodeler.impl;
|
|
|
|
|
|
|
|
import org.gcube.common.core.contexts.GCUBEServiceContext;
|
|
|
|
|
|
|
|
public class ServiceContext extends GCUBEServiceContext{
|
|
|
|
|
2008-04-22 15:04:13 +02:00
|
|
|
/** 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());
|
|
|
|
|
2008-04-22 14:11:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|