X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Ffull_javadoc%2Fcompbio%2Fengine%2Fconf%2FPropertyHelperManager.html;fp=website%2Ffull_javadoc%2Fcompbio%2Fengine%2Fconf%2FPropertyHelperManager.html;h=5beb6ff56dc4901e7aa6c3041d49a34cdb356c91;hb=da8c820a7fb2edecb190589f3dc9c362e57a2f24;hp=0000000000000000000000000000000000000000;hpb=0bbebf27d045b1345bc042bdf24ef2e6808df251;p=jabaws.git diff --git a/website/full_javadoc/compbio/engine/conf/PropertyHelperManager.html b/website/full_javadoc/compbio/engine/conf/PropertyHelperManager.html new file mode 100644 index 0000000..5beb6ff --- /dev/null +++ b/website/full_javadoc/compbio/engine/conf/PropertyHelperManager.html @@ -0,0 +1,332 @@ + + + + + + +PropertyHelperManager + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +compbio.engine.conf +
+Class PropertyHelperManager

+
+java.lang.Object
+  extended by compbio.engine.conf.PropertyHelperManager
+
+
+
+
public final class PropertyHelperManager
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+static StringconfDir + +
+           
+  + + + + + + + + + + +
+Constructor Summary
PropertyHelperManager() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static StringgetLocalPath() + +
+          Method return the absolute path to the project root directory.
+static compbio.util.PropertyHelpergetPropertyHelper() + +
+          Ways to fix path problem: 1) find a path to WEB-INF directory based on + the path to a known class.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+confDir

+
+public static final String confDir
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+PropertyHelperManager

+
+public PropertyHelperManager()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getPropertyHelper

+
+public static compbio.util.PropertyHelper getPropertyHelper()
+
+
Ways to fix path problem: 1) find a path to WEB-INF directory based on + the path to a known class. Then prepend this absolute path to the rest of + paths pros: no input from user cons: relocation of the source may cause + problems 2) Require users to add configuration directories to the class + path and then load entries from it. pros: cons: Many paths needs to be + added. Put significant burden on the user. Hard to tell web appl server + to add these entries to its class path. 3) Ask for project source + directory explicitly in the configuration. pros cons: similar to 1, but + this initial configuration file must reside in well known location! Why + ask users what can be found automatically? 4) Have everything in the + location already in class path for tomcat. cons: only classes and + lib/*.jar are added, eclipse will remove non classses from classes dir. + + Try 1 - succeed. +

+

+ +
Returns:
an instance
+
+
+
+ +

+getLocalPath

+
+public static String getLocalPath()
+
+
Method return the absolute path to the project root directory. It assumes + the following structure of the project project root conf settings + binaries WEB-INF classes compbio engine conf If the structure changes it + must be reflected in this method +

+

+ +
Returns:
the local path +
Throws: +
RuntimeException - if cannot determine the local path
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + +