Configuration

RoleConfiguration

<role
    name="org.apache.fulcrum.resourcemanager.ResourceManagerService"
    default-class="org.apache.fulcrum.resourcemanager.impl.ResourceManagerServiceImpl"
    shorthand="ResourceManagerService"
    early-init="true"
    description="Handles the management of resources for multiple domains"
 />
        

Component Configuration

ItemDatatypeOptionalDescription
domainElementNDefines one or more domains for managing resources
domain@nameStringNThe name of the domain
domain@typeStringNDefines the implementation class.
suffixStringYThe extension of the resources to manage
locationStringNThe location were the resources reside
useLocatorBooleanYEnable/disable the locator feature

ComponentConfiguration

<ResourceManagerService>
  <domain name="groovy" type="org.apache.fulcrum.resourcemanager.impl.FileResourceManager">
    <suffix>groovy</suffix>
    <location>./src/test/resources/scripts</location>
    <useLocator>true</useLocator>
  </domain>
  <domain name="xslt" type="org.apache.fulcrum.resourcemanager.impl.FileResourceManager">
    <suffix>*</suffix>
    <location>./src/test/resources/xslt</location>
    <useLocator>true</useLocator>
  </domain>
  <domain name="test" type="org.apache.fulcrum.resourcemanager.impl.FileResourceManager">
    <suffix>txt</suffix>
    <location>./src/test/resources/test</location>
    <useLocator>false</useLocator>
  </domain>
</ResourceManagerService>