Search:

Type: Posts; User: bryanhunt; Keyword(s):

Search: Search took 0.03 seconds.

  1. not me .... --b

    not me ....

    --b
  2. Replies
    17
    Views
    19,423

    Poll: Re: conditional loading context

    It's wierd the way that anytime you suggest anything in life there is
    a certain number of people who say .. no it should never be done like
    that ... it wont work etc ....

    I have two virtually...
  3. Re: the *best* solution

    The thing about it Jon is that it (Java prefs API) uses the windows registry or platform specific storage on linux/Mac etc.

    Getting and setting values is as simple as

    prefs.put(key, value);
    ...
  4. the *best* solution

    Ok I am in the exact same situation.

    Here is my solution

    Use the java Preferences API ....

    I have written this small tool to config it from command line or as ant task.
    ...
  5. Replies
    17
    Views
    19,423

    Poll: Re: sorry just one more thing

    But I don't have a single line of conditional logic. And I think that is the common case.



    Why on earth would you want to support all those configuration permutations? I have a production...
  6. not quite yet

    but it does the following ....

    when loaded in this fashion ...
    return new ClassPathXmlApplicationContext("classpath:/ie/jestate/spring/application.xml");

    however it displays strange...
  7. my mistake

    sorry main should have read as so
    snip=
    public static void main(String[] args) {

    Map mappings = new HashMap();
    ...
  8. extending AbstractXmlApplicationContext problem

    Hi there,
    I'm implementing a class called
    ConditionalClassPathXMLApplicationContext it extends
    AbstractXmlApplicationContext but allows xml based
    configuration of what contexts are loaded.
    ...
  9. Replies
    17
    Views
    19,423

    Poll: Re: sorry just one more thing

    [/quote]

    The problem with that is that if you were using the contextLoader Servlet,
    contextLoaderListener or HessianServiceExporter or HttpInvokerExporter
    you would need to subclass them and...
  10. Replies
    17
    Views
    19,423

    Poll: i have gone ahead and implemented this myself

    Hello all,
    I am sure there is a neater or better way to implement this but it is
    working for me. There is no testcase but I have tested this using the
    "main" method.

    This code is free for...
  11. Replies
    17
    Views
    19,423

    Poll: I am looking to be able to do the following. ...

    I am looking to be able to do the following.

    Provide my application http://jestate.dev.java.net as a war file.

    Provide a simple command line application ( already made )
    which can be used to...
  12. Replies
    17
    Views
    19,423

    Poll: Yes but I may want to run the web application in...

    Yes but I may want to run the web application in testing mode.

    ie without enabling authentication or enabling default auth so that
    any username/password combination will work.

    I could do it...
  13. Replies
    17
    Views
    19,423

    Poll: further research

    Perhaps

    org.springframework.context.support.ClassPathXmlApplicationContext

    Could be subclassed somehow to do this ?

    Config would then be like so

    <beans>
  14. Replies
    17
    Views
    19,423

    Poll: sorry just one more thing

    This would mean that you could have one set of spring configuration files
    for your entire application.

    Just setting the testing property would enable your testing or live
    configuration.

    You...
  15. Replies
    17
    Views
    19,423

    Poll: conditional processing

    Hi there,

    This is a feature that I don't think ( after reading the documentation )
    spring currently supports but I think it would be a cool feature so here
    it is.


    I am using the spring...
Results 1 to 15 of 15