Feature Requests item #1571677, was opened at 2006-10-05 21:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1571677&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.3
Status: Open
Priority: 5
Submitted By: Erik van Oosten (evoosten)
Assigned to: Nobody/Anonymous (nobody)
Summary: get configuration name (development/production)

Initial Comment:
Please provide a way to get the name of the
configuration, e.g. development/production.

To not restrict this to only 2 modes, I propose the
following method:

class Application {
    public final String getConfigurationName() {
       
getWicketServlet().getInitParameter(Application.CONFIGURATION);
    }


And in addition:
    public boolean isProductionConfiguration() {
         return
Application.DEVELOPMENT.equals(getRunMode());
    }

Method isProductionConfiguration should not be final as
a sub-class may have multiple configurations mapped to
production (for example "acceptance" and "production").

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1571677&group_id=119783

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to