public static DataSetCore get() { if (_instance == null) { _instance = new DataSetCoreImpl(); } return _instance; }
@Override public IntervalBuilderLocator newIntervalBuilderLocator() { return getIntervalBuilderLocatorImpl(); }
@Override public Chronometer newChronometer() { return getChronometerImpl(); }
@Inject public DataSetLookupServicesImpl(DataSetManagerCDI dataSetManager, DataSetDefDeployerCDI dataSetDefDeployer, ExceptionManager exceptionManager) { this.dataSetManager = dataSetManager; this.uuidGenerator = DataSetCore.get().getUuidGenerator(); this.dataSetDefDeployer = dataSetDefDeployer; this.exceptionManager = exceptionManager; }
public DataSetDefJSONMarshaller getDataSetDefJsonMarshaller() { return DataSetCore.get().getDataSetDefJSONMarshaller(); }
public StaticDataSetProviderCDI() { super(DataSetCore.get().getSharedDataSetOpEngine()); } }
@Test public void testDataSetDeployerInit() throws Exception { DataSetDefDeployer dataSetDefDeployer = DataSetCore.get().getDataSetDefDeployer(); assertNotNull(dataSetDefDeployer); assertEquals(dataSetDefDeployer, dataSetDefDeployerCDI); }
public DataSetDefRegistry getDataSetDefRegistry() { if (dataSetDefRegistry == null) { dataSetDefRegistry = new DataSetDefRegistryImpl( checkNotNull(getDataSetProviderRegistry(), "DataSetProviderRegistry"), checkNotNull(getScheduler(), "Scheduler")); } return dataSetDefRegistry; }
public DataSetDefDeployer getDataSetDefDeployer() { if (dataSetDefDeployer == null) { dataSetDefDeployer = new DataSetDefDeployer( checkNotNull(getDataSetDefJSONMarshaller(), "DataSetDefJSONMarshaller"), checkNotNull(getDataSetDefRegistry(), DATA_SET_DEF_REGISTRY)); } return dataSetDefDeployer; }
public StaticDataSetProvider getStaticDataSetProvider() { if (staticDataSetProvider == null) { staticDataSetProvider = new StaticDataSetProvider( checkNotNull(getSharedDataSetOpEngine(), "SharedDataSetOpEngine")); } return staticDataSetProvider; }
@Override public DataSetDefJSONMarshaller getDataSetDefJSONMarshaller() { if (dataSetDefJSONMarshaller == null) { dataSetDefJSONMarshaller = new DataSetDefJSONMarshaller( checkNotNull(getDataSetProviderRegistry(), "DataSetProviderRegistry")); } return dataSetDefJSONMarshaller; }
@Before public void setUp() throws Exception { bootstrap.init(); }
@Override public DataSetManager newDataSetManager() { return getDataSetManagerImpl(); }
@Override public UUIDGenerator newUuidGenerator() { return getUUIDGeneratorImpl(); }
@Inject public DataSetDefServicesImpl(User identity, ExceptionManager exceptionManager, DataSetDefRegistryCDI dataSetDefRegistry, DataSetDefDeployerCDI dataSetDefDeployer) { this.identity = identity; this.uuidGenerator = DataSetCore.get().getUuidGenerator(); this.dataSetDefRegistry = dataSetDefRegistry; this.exceptionManager = exceptionManager; this.dataSetDefDeployer = dataSetDefDeployer; }
public DataSetDefJSONMarshaller getDataSetDefJsonMarshaller() { return DataSetCore.get().getDataSetDefJSONMarshaller(); }
public StaticDataSetProviderCDI() { super(DataSetCore.get().getSharedDataSetOpEngine()); } }
@Test public void testDataSetDeployerInit() throws Exception { DataSetDefDeployer dataSetDefDeployer = DataSetCore.get().getDataSetDefDeployer(); assertNotNull(dataSetDefDeployer); assertEquals(dataSetDefDeployer, dataSetDefDeployerCDI); }
@Before public void setUp() throws Exception { bootstrap.init(); }
@Inject public DataSetExportServicesImpl(DataSetManagerCDI dataSetManager, DataSetDefRegistryCDI gitStorage, ExceptionManager exceptionManager) { this.dataSetManager = dataSetManager; this.gitStorage = gitStorage; this.uuidGenerator = DataSetCore.get().getUuidGenerator(); this.exceptionManager = exceptionManager; }