Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1494

Need to expose the filter list for the default Filter implementation on URLDeploymentScanner

XMLWordPrintable

      Adding new patterns of files that the URLDeploymentScanner should ignore currently requires a custom class implementation. The default Filter attribute:

      <!-- The Filter specifies a java.io.FileFilter for scanned
      directories. Any file not accepted by this filter will not be
      deployed. The org.jboss.deployment.scanner.DeploymentFilter
      rejects the following patterns:
      "#", "%", ",", ".", "_$", "#", "$", "%", "*.BAK",
      ".old", ".orig", ".rej", ".bak", ",v", "~", ".make.state",
      ".nse_depinfo", "CVS", "CVS.admin", "RCS", "RCSLOG", "SCCS",
      "TAGS", "core", "tags"
      -->
      <attribute name="Filter">org.jboss.deployment.scanner.DeploymentFilter</attribute>

      cannot have prefixes and suffixes added without creating a custom filter implementation. There should be basic support for configuring the DeploymentFilter using either the javaBean support:

      <mbean code="org.jboss.test.jmx.complexattrs.ComplexAttrTests"
      name="test:name=ComplexAttrTests,case=#1">
      <attribute name="Bean2"
      attributeClass="org.jboss.test.jmx.complexattrs.JavaBean2"
      serialDataType="javaBean">
      <property name="i">12345678</property>
      <property name="f">1.23456</property>
      <property name="d">3.14159265358979323846</property>
      <property name="l">1234567890</property>
      </attribute>
      </mbean>

      or, the under development jbossxb mechanism:

      <!-- Tell JBossXB about the namespace to factory mappings in this doc -->
      <?jbossxb ns="urn:schema:ns1:jbossxb"
      factory="org.jboss.test.jmx.complexattrs.JavaBeanObjectModelFactory"?>
      ...
      <!-- Test the jbossxb attribute data type syntax -->
      <mbean code="org.jboss.test.jmx.complexattrs.ComplexAttrTests"
      name="test:name=ComplexAttrTests,case=#2">
      <attribute name="Bean1"
      attributeClass="org.jboss.test.jmx.complexattrs.JavaBean1"
      serialDataType="jbossxb"
      xmlns:ns1="urn:schema:ns1:jbossxb">
      <ns1:javabean1>
      <property name="bindAddress">127.0.0.1</property>
      <property name="someDate">Sun Jan 2 23:26:49 PST 2005</property>
      <property name="props">
      prop1=value1
      prop2=value2
      prop3=${prop3.systemProperty}
      </property>
      <property name="names">name1,name2,name3</property>
      <property name="someURL">http://www.jboss.org</property>
      </ns1:javabean1>
      </attribute>
      </mbean>

              starksm64 Scott Stark (Inactive)
              starksm64 Scott Stark (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: