[trident~source:108] Check for the presence of property interpolator base class to make the fu
- From: kirillg@kenai.com
- To: commits@trident.kenai.com
- Subject: [trident~source:108] Check for the presence of property interpolator base class to make the fu
- Date: Thu, 11 Mar 2010 06:17:29 +0000
Project: trident
Repository: source
Revision: 108
Author: kirillg
Date: 2010-03-11 06:17:22 UTC
Link:
Log Message:
------------
Check for the presence of property interpolator base class to make the
further lookups more efficient.
Revisions:
----------
108
Modified Paths:
---------------
src/org/pushingpixels/trident/TridentConfig.java
Diffs:
------
Index: src/org/pushingpixels/trident/TridentConfig.java
===================================================================
--- src/org/pushingpixels/trident/TridentConfig.java (revision 107)
+++ src/org/pushingpixels/trident/TridentConfig.java (revision 108)
@@ -128,8 +128,24 @@
.isAssignableFrom(piSourceClass)) {
PropertyInterpolatorSource piSource = (PropertyInterpolatorSource)
piSourceClass
.newInstance();
-
this.propertyInterpolators.addAll(piSource
-
.getPropertyInterpolators());
+
Set<PropertyInterpolator> interpolators = piSource
+
.getPropertyInterpolators();
+ for
(PropertyInterpolator pi : interpolators) {
+
try {
+
Class basePropertyClass = pi
+
.getBasePropertyClass();
+
// is in classpath?
+
basePropertyClass.getClass();
+
this.propertyInterpolators.add(pi);
+
} catch (NoClassDefFoundError ncdfe) {
+
// trying to initialize a plugin
+
// with a missing
+
// class - just skip
+
}
+
+ }
+ //
this.propertyInterpolators.addAll(piSource
+ //
.getPropertyInterpolators());
}
} catch
(NoClassDefFoundError ncdfe) {
// trying to
initialize a plugin with a missing
|
[trident~source:108] Check for the presence of property interpolator base class to make the fu |
kirillg | 03/11/2010 |





