Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 986229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:17:16+00:00 2026-05-16T05:17:16+00:00

Consider a factory bean. It takes a single property of type Map<String, Object> .

  • 0

Consider a factory bean. It takes a single property of type Map<String, Object>. It carefully checks all the Objects for ‘instanceof Resource’ and does resource processing appropriately.

I configure this bean like:

<bean id='fact' class='my.class'>
  <property name='map'>
    <map>
      <entry key="x" value="file:/WEB-INF/foo.txt"/>
    </map>
  </property>
 </bean>

In the debugger, I see that the setter for the property is called with a Map, and the value is a java.lang.String with the file: still sitting on it.

Since there is no explicit prefix for servlet context resources, I am now officially puzzled.

In my previous question, the ‘solution’ turned out to be to correct a really stupid default configuration of the maven-jetty-plugin.

Apologies for the rewrite, but no one answered yet 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:17:17+00:00Added an answer on May 16, 2026 at 5:17 am

    More and more googling eventually revealed:

    <entry key="grammarURL">
                <value type="org.springframework.core.io.Resource">classpath:/com/basistech/ras/rules.jape</value>
    </entry>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider I have the following classes: /// File classes.d class C { string type()
Consider two references of type Integer that call the static factory method valueOf as
Consider a theoretical factory class containing over a thousand of attributes (models, by example,
Consider this example var task =Task.Factory.StartNew(()=>Console.WriteLine(test)); task.ContinueWith(antecendent => { ExceptionProcessor.HandleError(task.Exception.Flatten()); }, TaskContinuationOptions.OnlyOnFaulted); In this
Consider the following Mechanize form object #<Mechanize::Form {name f1} {method POST} {action f.php} {fields
Consider this example: public class Factory { private List<ISubFactory> subFactories; public Factory(List<ISubFactory> subFactories) {
Consider I have a some Factory class: class Factory { public: Factory(); virtual ~Factory();
Consider a Web.config file containing the following httpHandlers declaration: <httpHandlers> <add verb=* path=* type=MyWebApp.TotalHandlerFactory/>
Consider a factory method that I may or may not control, passed to another
Consider the following method (used in a factory method): private Packet(byte[] rawBytes, int startIndex)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.