Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 4th, 2012  |  syntax: None  |  size: 5.30 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.   ~ ModeShape (http://www.modeshape.org)
  4.   ~
  5.   ~ See the COPYRIGHT.txt file distributed with this work for information
  6.   ~ regarding copyright ownership.  Some portions may be licensed
  7.   ~ to Red Hat, Inc. under one or more contributor license agreements.
  8.   ~ See the AUTHORS.txt file in the distribution for a full listing of
  9.   ~ individual contributors.
  10.   ~
  11.   ~ ModeShape is free software. Unless otherwise indicated, all code in ModeShape
  12.   ~ is licensed to you under the terms of the GNU Lesser General Public License as
  13.   ~ published by the Free Software Foundation; either version 2.1 of
  14.   ~ the License, or (at your option) any later version.
  15.   ~
  16.   ~ ModeShape is distributed in the hope that it will be useful,
  17.   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  18.   ~ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
  19.   ~ for more details.
  20.   ~
  21.   ~ You should have received a copy of the GNU Lesser General Public License
  22.   ~ along with this distribution; if not, write to:
  23.   ~ Free Software Foundation, Inc.
  24.   ~ 51 Franklin Street, Fifth Floor
  25.   ~ Boston, MA  02110-1301  USA
  26.   -->
  27. <configuration xmlns:mode="http://www.modeshape.org/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0">
  28.     <!--
  29.     Define the sources for the content.  These sources are directly accessible using the ModeShape-specific Graph API.
  30.     In fact, this is how the ModeShape JCR implementation works.  You can think of these as being similar to
  31.     JDBC DataSource objects, except that they expose graph content via the Graph API instead of records via SQL or JDBC.
  32.     -->
  33.     <mode:sources jcr:primaryType="nt:unstructured">
  34.         <!--
  35.         The 'JCR' repository is a JBoss Cache source with a single default workspace (though others could be created, too).
  36.         -->
  37.         <mode:source jcr:name="Store" mode:classname="org.modeshape.connector.store.jpa.JpaSource"
  38.                 mode:model="Simple"
  39.                 mode:dialect="org.hibernate.dialect.HSQLDialect"
  40.                 mode:driverClassName="org.hsqldb.jdbcDriver"
  41.                 mode:username="sa"
  42.                 mode:password=""
  43.                 mode:url="jdbc:hsqldb:mem:modeshape"
  44.                 mode:maximumConnectionsInPool="2"
  45.                 mode:referentialIntegrityEnforced="true"
  46.                 mode:largeValueSizeInBytes="150"
  47.                 mode:retryLimit="3"
  48.                 mode:compressData=""
  49.                 mode:predefinedWorkspaceNames="default, otherWorkspace"
  50.                 mode:showSql="false"
  51.             mode:autoGenerateSchema="create"
  52.             mode:creatingWorkspacesAllowed="true"
  53.                 mode:defaultWorkspaceName="default"/>    
  54.     </mode:sources>
  55.     <!--
  56.     Define the mime type detectors. This is an optional section.  By default, each engine will use the
  57.     MIME type detector that uses filename extensions.  So we wouldn't need to define the same detector again,
  58.     but this is how you'd define another extension.
  59.     -->
  60.     <mode:mimeTypeDetectors>
  61.         <mode:mimeTypeDetector jcr:name="Detector">
  62.             <mode:description>Standard extension-based MIME type detector</mode:description>        
  63.             <!--
  64.             Specify the implementation class (required), as a child element or attribute on parent element.
  65.             -->
  66.             <mode:classname>org.modeshape.graph.mimetype.ExtensionBasedMimeTypeDetector</mode:classname>
  67.             <!--
  68.             Specify the classpath (optional) as an ordered list of 'names', where each name is significant to
  69.             the classpath factory.  For example, a name could be an OSGI identifier or a Maven coordinate,
  70.             depending upon the classpath factory being used.  If there is only one 'name' in the classpath,
  71.             it may be specified as an attribute on the 'mimeTypeDetector' element.  If there is more than one
  72.             'name', then they must be specified as child 'classpath' elements. Blank or empty values are ignored.
  73.              -->
  74.             <mode:classpath></mode:classpath>
  75.         </mode:mimeTypeDetector>
  76.     </mode:mimeTypeDetectors>
  77.     <!--
  78.     Define the JCR repositories
  79.     -->
  80.     <mode:repositories>
  81.         <!--
  82.         Define a JCR repository that accesses the 'JCR' source directly.
  83.         This of course is optional, since we could access the same content through 'JCR'.
  84.         -->
  85.         <mode:repository jcr:name="magnolia">
  86.             <!-- Specify the source that should be used for the repository -->
  87.             <mode:source>Store</mode:source>
  88.             <!-- Define the options for the JCR repository, using camelcase version of JcrRepository.Option names
  89. -->
  90.             <mode:options jcr:primaryType="mode:options">
  91.                 <projectNodeTypes jcr:primaryType="mode:option" mode:value="false"/>
  92.                 <jaasLoginConfigName jcr:primaryType="mode:option" mode:value="modeshape-jcr"/>
  93.             </mode:options>
  94.             <jcr:nodeTypes mode:resource="magnolia.cnd" />
  95.             <!-- Define any namespaces for this repository, other than those already defined by JCR or ModeShape
  96.             <namespaces jcr:primaryType="mode:namespaces">
  97.                 <modetest jcr:primaryType="mode:namespace" mode:uri="http://www.modeshape.org/test/1.0"/>
  98.             </namespaces>
  99. -->
  100.         </mode:repository>
  101.     </mode:repositories>
  102. </configuration>