Results 1 to 2 of 2

Thread: Resources and Wildcards

  1. #1

    Default Resources and Wildcards

    I have a bean I want to create that looks like this:

    Code:
    	<bean id="validatorFactory"
    		class="org.springmodules.validation.commons.DefaultValidatorFactory">
    		<property name="validationConfigLocations">
    			<list>
    				<value>classpath:com/somewhere/web/custom-forms*.xml</value>
    				<value>classpath:com/somewhere/rules/spring/validator-rules.xml</value>
    			</list>
    		</property>
    	</bean>
    Basically, I want to provide some wildcarded validation config locations and some exact locations.

    The above does not work.

    Is there any out-of-the-box utility in Spring to merge together these entries (all those found by the wildcard and the single explicit one) into one resource array or do I have to create my own class to do this?

    Thanks!

  2. #2

    Default

    Disregard. Figured it out. Was a maven-specific classpath problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •