view flys-artifacts/doc/conf/conf.xml @ 340:b36fd8f21e6a

Implementation of interfaces and its default implementations and a factory to work with themes. flys-artifacts/trunk@1739 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 21 Apr 2011 08:44:41 +0000
parents 5a2df8677b3e
children eca7892bf8ff
line wrap: on
line source
<artifact-database>
    <export-secret>YOUR_SECRET</export-secret>
    <factories>
        <context-factory>de.intevation.flys.artifacts.context.FLYSContextFactory</context-factory>

        <collection-factory
            name="DefaultArtifactCollectionFactory"
            description="The default artifact collection factory"
            ttl="60000"
            artifact-collection="de.intevation.flys.collections.FLYSArtifactCollection">de.intevation.artifactdatabase.DefaultArtifactCollectionFactory</collection-factory>

        <artifact-factories>
            <!-- All Artifactfactories which are available in this Database.
                 Each Artifactfactory represents one river. -->
            <artifact-factory name="winfo" description="Factory to create an artifact to be used in WINFO"
                ttl="3600000"
                artifact="de.intevation.flys.artifacts.WINFOArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory>
        </artifact-factories>

        <user-factory name="default" description="Factory to create new users">de.intevation.artifactdatabase.DefaultUserFactory</user-factory>

        <service-factories>
            <service-factory
                name="rivers"
                service="de.intevation.flys.artifacts.services.RiverService"
                description="This service returns a list of provided rivers by the artifact server.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
            <service-factory
                name="distanceinfo"
                service="de.intevation.flys.artifacts.services.DistanceInfoService"
                description="Returns a list of distances supported by a specific river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
            <service-factory
                name="mainvalues"
                service="de.intevation.flys.artifacts.services.MainValuesService"
                description="Returns the main values of a river's gauge based on a start and end point of the river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
        </service-factories>

    </factories>

    <callcontext-listener
        name="SessionCallContextListener"
        description="A CallContext.Listener to open and close Hibernatesessions">de.intevation.flys.artifacts.context.SessionCallContextListener</callcontext-listener>

    <artifacts>
        <artifact name="winfo" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/winfo.xml" />
    </artifacts>

    <rest-server>
        <!--  at this Point it is possible to Change the Port the ArtifactDatabase will bind to.-->
        <port>8181</port>
        <listen>localhost</listen>
    </rest-server>
    <!-- garbage collection of outdated artifacts -->
    <cleaner>
        <sleep-time>60000</sleep-time>
    </cleaner>
    <database>
        <!-- This Section configures the Settings for connecting to the 
             Artifact-Database instance. e.g. SQLite -->
        <user>SA</user>
        <password></password>
        <url>jdbc:h2:${artifacts.config.dir}/../artifactdb/artifacts.db</url>
    </database>
    <!-- This is the default backend db configuration -->
    <!--
    <backend-database>
        <user>flys</user>
        <password>flys</password>
        <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
        <driver>org.postgresql.Driver</driver>
        <url>jdbc:postgresql://localhost:5432/flys</url>
    </backend-database>
    -->
</artifact-database>

http://dive4elements.wald.intevation.org