import org.onap.cps.spi.impl.CpsModulePersistenceServiceImpl
import org.onap.cps.spi.repository.AnchorRepository
import org.onap.cps.spi.repository.DataspaceRepository
+import org.onap.cps.spi.repository.FragmentNativeRepository
import org.onap.cps.spi.repository.FragmentRepository
import org.onap.cps.spi.repository.ModuleReferenceRepository
import org.onap.cps.spi.repository.SchemaSetRepository
import org.onap.cps.spi.repository.YangResourceRepository
import org.onap.cps.spi.utils.SessionManager
import org.onap.cps.utils.JsonObjectMapper
+import org.onap.cps.utils.TimedYangParser
+import org.onap.cps.yang.TimedYangTextSchemaSourceSetBuilder
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Autowired
@Lazy
- JsonObjectMapper jsonObjectMapper
+ FragmentNativeRepository fragmentNativeRepository
@Autowired
@Lazy
- NotificationService stubbedNotificationService
+ JsonObjectMapper jsonObjectMapper
@Autowired
@Lazy
@Bean
CpsDataPersistenceService cpsDataPersistenceService() {
- return (CpsDataPersistenceService) new CpsDataPersistenceServiceImpl(dataspaceRepository, anchorRepository, fragmentRepository, jsonObjectMapper, stubbedSessionManager)
+ return (CpsDataPersistenceService) new CpsDataPersistenceServiceImpl(dataspaceRepository, anchorRepository, fragmentRepository, jsonObjectMapper, stubbedSessionManager, fragmentNativeRepository)
}
@Bean
SessionManager sessionManager() {
return Stub(SessionManager)
}
-}
\ No newline at end of file
+
+ @Bean
+ TimedYangParser timedYangParser() {
+ return new TimedYangParser()
+ }
+
+ @Bean
+ TimedYangTextSchemaSourceSetBuilder textSchemaSourceSetBuilder() {
+ return new TimedYangTextSchemaSourceSetBuilder()
+ }
+
+}