<?xml version="1.0" encoding="UTF-8"?>
<StrolchConfiguration>
	<env id="dev">
		<Runtime>
			<applicationName>StrolchRuntimeTest</applicationName>
		</Runtime>
		<Component>
			<name>PrivilegeHandler</name>
			<api>li.strolch.runtime.privilege.PrivilegeHandler</api>
			<impl>li.strolch.runtime.privilege.DefaultStrolchPrivilegeHandler</impl>
			<Properties>
				<privilegeConfigFile>PrivilegeConfig.xml</privilegeConfigFile>
			</Properties>
		</Component>
		<Component>
			<name>RealmHandler</name>
			<api>li.strolch.agent.api.RealmHandler</api>
			<impl>li.strolch.agent.impl.DefaultRealmHandler</impl>
			<depends>PrivilegeHandler</depends>
			<depends>PersistenceHandler</depends>
			<Properties>
				<realms>defaultRealm, svcTransient, svcCached, svcCachedAuditsVersioning</realms>

				<dataStoreMode>EMPTY</dataStoreMode>

				<tryLockTimeUnit.svcTransient>SECONDS</tryLockTimeUnit.svcTransient>
				<tryLockTime.svcTransient>1</tryLockTime.svcTransient>
				<dataStoreMode.svcTransient>TRANSIENT</dataStoreMode.svcTransient>
				<dataStoreFile.svcTransient>StrolchModel.xml</dataStoreFile.svcTransient>

				<tryLockTimeUnit.svcCached>SECONDS</tryLockTimeUnit.svcCached>
				<tryLockTime.svcCached>1</tryLockTime.svcCached>
				<dataStoreMode.svcCached>CACHED</dataStoreMode.svcCached>

				<tryLockTimeUnit.svcCachedAuditsVersioning>SECONDS</tryLockTimeUnit.svcCachedAuditsVersioning>
				<tryLockTime.svcCachedAuditsVersioning>1</tryLockTime.svcCachedAuditsVersioning>
				<dataStoreMode.svcCachedAuditsVersioning>CACHED</dataStoreMode.svcCachedAuditsVersioning>
				<enableAuditTrail.svcCachedAuditsVersioning>true</enableAuditTrail.svcCachedAuditsVersioning>
				<enableVersioning.svcCachedAuditsVersioning>true</enableVersioning.svcCachedAuditsVersioning>

			</Properties>
		</Component>

		<Component>
			<name>PersistenceHandler</name>
			<api>li.strolch.persistence.api.PersistenceHandler</api>
			<impl>li.strolch.persistence.postgresql.PostgreSqlPersistenceHandler</impl>
			<Properties>
				<allowSchemaCreation>true</allowSchemaCreation>
				<allowSchemaMigration>true</allowSchemaMigration>
				<allowSchemaDrop>true</allowSchemaDrop>

				<db.allowHostOverrideEnv>true</db.allowHostOverrideEnv>

				<db.url.svcCached>jdbc:postgresql://localhost/cacheduserdb</db.url.svcCached>
				<db.username.svcCached>cacheduser</db.username.svcCached>
				<db.password.svcCached>test</db.password.svcCached>
				<db.pool.maximumPoolSize.svcCached>1</db.pool.maximumPoolSize.svcCached>
				<db.pool.keepaliveTime.svcCached>600000</db.pool.keepaliveTime.svcCached>

				<db.url.svcCachedAuditsVersioning>jdbc:postgresql://localhost/cacheduserauditsversioningdb</db.url.svcCachedAuditsVersioning>
				<db.username.svcCachedAuditsVersioning>cacheduserauditsversioning</db.username.svcCachedAuditsVersioning>
				<db.password.svcCachedAuditsVersioning>test</db.password.svcCachedAuditsVersioning>
				<db.pool.maximumPoolSize.svcCachedAuditsVersioning>1</db.pool.maximumPoolSize.svcCachedAuditsVersioning>
				<db.pool.keepaliveTime.svcCachedAuditsVersioning>600000</db.pool.keepaliveTime.svcCachedAuditsVersioning>

			</Properties>
		</Component>

		<Component>
			<name>ServiceHandler</name>
			<api>li.strolch.service.api.ServiceHandler</api>
			<impl>li.strolch.service.api.DefaultServiceHandler</impl>
			<Properties>
				<verbose>true</verbose>
			</Properties>
		</Component>

		<Component>
			<name>PolicyHandler</name>
			<api>li.strolch.policy.PolicyHandler</api>
			<impl>li.strolch.policy.DefaultPolicyHandler</impl>
			<Properties>
				<readPolicyFile>true</readPolicyFile>
				<policyConfigFile>StrolchPolicies.xml</policyConfigFile>
			</Properties>
		</Component>

		<Component>
			<name>ExecutionHandler</name>
			<api>li.strolch.execution.ExecutionHandler</api>
			<impl>li.strolch.execution.EventBasedExecutionHandler</impl>
		</Component>

		<Component>
			<name>OperationsLog</name>
			<api>li.strolch.handler.operationslog.OperationsLog</api>
			<impl>li.strolch.handler.operationslog.OperationsLog</impl>
			<depends>RealmHandler</depends>
		</Component>

	</env>
</StrolchConfiguration>