[Yanel-commits] rev 24460 -
public/yanel/trunk/src/core/java/org/wyona/yanel/core
michi at wyona.com
michi at wyona.com
Mon May 14 23:09:38 CEST 2007
Author: michi
Date: 2007-05-14 23:09:37 +0200 (Mon, 14 May 2007)
New Revision: 24460
Modified:
public/yanel/trunk/src/core/java/org/wyona/yanel/core/Resource.java
Log:
simplify accessing resource config properties
Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/Resource.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/Resource.java 2007-05-14 21:02:48 UTC (rev 24459)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/Resource.java 2007-05-14 21:09:37 UTC (rev 24460)
@@ -260,4 +260,23 @@
return language;
}
+ /**
+ * Get property value from resource configuration
+ */
+ public String getResourceConfigProperty(String name) throws Exception {
+ ResourceConfiguration rc = getConfiguration();
+ if (rc != null) return rc.getProperty(name);
+ return getRTI().getProperty(name);
+ }
+
+ /**
+ * Get property value from resource configuration
+ */
+ public String[] getResourceConfigProperties(String name) throws Exception {
+ ResourceConfiguration rc = getConfiguration();
+ if (rc != null) return rc.getProperties(name);
+ return getRTI().getProperties(name);
+ }
+
+
}
More information about the Yanel-commits
mailing list