<?xml version="1.0" encoding="ISO-8859-1"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
  xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">

  <component>
    <type>org.exoplatform.ide.IDEServiceApplication</type>
    <init-params>
      <value-param>
        <name>defaultEntryPoint</name>
        <value>dev-monit</value>
      </value-param>
      <value-param>
        <name>discoverable</name>
        <value>true</value>
      </value-param>
    </init-params>
  </component>

  <component>
    <type>org.exoplatform.ide.chromattic.ChromatticServiceApplication</type>
  </component>

  <component>
    <type>org.chromattic.dataobject.runtime.ChromatticSessionProvider</type>
    <init-params>
      <value-param>
        <name>rootNodePath</name>
        <value>/.chromattic-data/</value>
      </value-param>
      <value-param>
        <name>workspaceName</name>
        <value>dev-monit</value>
      </value-param>
      <value-param>
        <name>rootNodeType</name>
        <value>nt:unstructured</value>
      </value-param>
    </init-params>
  </component>

  <component>
    <type>org.chromattic.dataobject.DataObjectService</type>
  </component>

  <component>
    <type>org.exoplatform.ide.groovy.GroovyScriptServiceApplication</type>
    <init-params>
      <object-param>
        <name>autocompletion.configuration</name>
        <object type="org.exoplatform.ide.groovy.codeassistant.bean.GroovyAutocompletionConfig">
          <field name="wsName">
            <string>system</string>
          </field>
          <field name="runInThread">
            <boolean>true</boolean>
          </field>
          <field name="jarEntries">
            <collection type="java.util.ArrayList">
              <value>
                <object type="org.exoplatform.ide.groovy.codeassistant.bean.JarEntry">
                  <field name="jarPath">
                    <string>${jre.lib}${file.separator}rt.jar</string>
                  </field>
                  <field name="includePkg">
                    <collection type="java.util.ArrayList">
                      <value>
                        <string>java.lang</string>
                      </value>
                      <value>
                        <string>java.util</string>
                      </value>
                    </collection>
                  </field>
                </object>
              </value>
            </collection>
          </field>
          <field name="jarDocs">
            <collection type="java.util.ArrayList">
              <value>
                <object type="org.exoplatform.ide.groovy.codeassistant.bean.JarEntry">
                  <field name="jarPath">
                    <string>${javasrc}</string>
                  </field>
                  <field name="includePkg">
                    <collection type="java.util.ArrayList">
                      <value>
                        <string>java.lang</string>
                      </value>
                      <value>
                        <string>java.util</string>
                      </value>
                    </collection>
                  </field>
                </object>
              </value>
            </collection>
          </field>
        </object>
      </object-param>
    </init-params>
  </component>

  <component>
    <type>org.exoplatform.ide.shindig.oauth.RestSecurityTokenGenerator</type>
  </component>

  <component>
    <type>org.exoplatform.ide.service.gatein.RestGadgetRegistryService</type>
  </component>

  <component>
    <key>org.exoplatform.services.jcr.ext.script.groovy.GroovyScript2RestLoader</key>
    <type>org.exoplatform.ide.groovy.GroovyScriptService</type>
    <component-plugins>
      <component-plugin>
        <name>add groovy repo</name>
        <set-method>addPlugin</set-method>
        <type>org.exoplatform.services.jcr.ext.script.groovy.GroovyScriptAddRepoPlugin</type>
        <init-params>
          <properties-param>
            <name>repo1</name>
            <property name="repository" value="repository" />
            <property name="workspace" value="dev-monit" />
            <property name="path" value="/" />
          </properties-param>
        </init-params>
      </component-plugin>
    </component-plugins>
    <init-params>
      <object-param>
        <name>observation.config</name>
        <object type="org.exoplatform.services.jcr.ext.script.groovy.ObservationListenerConfiguration">
          <field name="repository">
            <string>repository</string>
          </field>
          <field name="workspaces">
            <collection type="java.util.ArrayList">
              <value>
                <string>dev-monit</string>
              </value>
            </collection>
          </field>
        </object>
      </object-param>
    </init-params>
  </component>

</configuration>

