Announcement Announcement Module
Collapse
No announcement yet.
Resources and Wildcards Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Disregard. Figured it out. Was a maven-specific classpath problem

    Comment

    Working...
    X