Commit in projects/lcsim/trunk/conditions/src/main/java/org/lcsim/conditions on MAIN | |||
ConditionsManager.java | +10 | 3076 -> 3077 |
Add method for checking if conditions system is setup.
--- projects/lcsim/trunk/conditions/src/main/java/org/lcsim/conditions/ConditionsManager.java 2014-04-03 16:39:11 UTC (rev 3076) +++ projects/lcsim/trunk/conditions/src/main/java/org/lcsim/conditions/ConditionsManager.java 2014-04-03 16:39:58 UTC (rev 3077) @@ -21,8 +21,18 @@
} public static void setDefaultConditionsManager(ConditionsManager manager) {
+ //System.out.println("ConditionsManager.setDefaultConditionsManager from..."); + new RuntimeException().printStackTrace();
theConditionsManager = manager; }
+ + /** + * Return true if there is a conditions manager installed. + * @return true if conditions managed is setup + */ + public static boolean isSetup() { + return theConditionsManager != null; + }
/** * Normally called automatically by the framework to set the detector name
Use REPLY-ALL to reply to list
To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1