git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@34 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
65dfa09b2f
commit
ee7c36eca3
|
@ -19,7 +19,6 @@ import org.gcube.common.core.porttypes.GCUBEStartupPortType;
|
||||||
import org.gcube.common.core.resources.GCUBEHostingNode;
|
import org.gcube.common.core.resources.GCUBEHostingNode;
|
||||||
import org.gcube.common.core.resources.GCUBEResource;
|
import org.gcube.common.core.resources.GCUBEResource;
|
||||||
import org.gcube.common.core.scope.GCUBEScope;
|
import org.gcube.common.core.scope.GCUBEScope;
|
||||||
import org.gcube.common.core.state.GCUBEWSResourceKey;
|
|
||||||
import org.gcube.common.core.utils.logging.GCUBELog;
|
import org.gcube.common.core.utils.logging.GCUBELog;
|
||||||
import org.gcube.common.is.publisher.impl.GCUBEPublisher;
|
import org.gcube.common.is.publisher.impl.GCUBEPublisher;
|
||||||
import org.gcube.common.is.publisher.impl.GCUBEPublisherException;
|
import org.gcube.common.is.publisher.impl.GCUBEPublisherException;
|
||||||
|
@ -87,28 +86,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Factory PT initialization
|
|
||||||
*
|
|
||||||
* @throws ServiceException
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public void init (Object arg0) throws ServiceException {
|
|
||||||
|
|
||||||
super.init(arg0);
|
|
||||||
//initialization of the Registry Configuration
|
|
||||||
try {
|
|
||||||
FactoryContext.getContext().getWSHome().create(FactoryContext.getContext().makeKey("FactoryResource"));
|
|
||||||
|
|
||||||
} catch (ResourceException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
throw new ServiceException(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Use to Load from Disk persistence profiles and registers it into the IS-IC ( in case the IS-IC is empty)
|
* Use to Load from Disk persistence profiles and registers it into the IS-IC ( in case the IS-IC is empty)
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
|
@ -18,6 +18,10 @@ public class ServiceContext extends GCUBEServiceContext{
|
||||||
return JNDI_NAME;
|
return JNDI_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onInitialisation() throws Exception {
|
||||||
|
FactoryContext.getContext().getWSHome().create(FactoryContext.getContext().makeKey("RegistryResource"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue