Changeset 7224
- Timestamp:
- Nov 14, 2016, 1:43:01 PM (6 years ago)
- Location:
- trunk/src/core/net/sf/basedb/util/extensions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/util/extensions/Registry.java
r6881 r7224 794 794 void update(ExtensionPoint<A> ep, ClassLoader classLoader) 795 795 { 796 if (log.isDebugEnabled()) 797 { 798 log.debug("Update registry: " + ep + 799 "; old classloader="+this.classLoader + "; new classLoader="+classLoader); 800 } 796 801 this.classLoader = classLoader; 797 802 this.name = ep.getName(); … … 935 940 void update(Extension<A> extension, ClassLoader classLoader) 936 941 { 942 if (log.isDebugEnabled()) 943 { 944 log.debug("Update registry: " + extension + 945 "; old classloader="+this.classLoader + "; new classLoader="+classLoader); 946 } 937 947 this.classLoader = classLoader; 938 948 this.index = extension.getIndex(); -
trunk/src/core/net/sf/basedb/util/extensions/xml/ExtensionPointFilter.java
r6473 r7224 49 49 { 50 50 51 private static final org.slf4j.Logger log = 52 org.slf4j.LoggerFactory.getLogger(ExtensionPointFilter.class); 53 51 54 private final Pattern pattern; 52 55 … … 99 102 idToMatch = Values.getStringOrNull(tag.getText()); 100 103 } 101 return idToMatch != null && pattern.matcher(idToMatch).matches(); 104 boolean matches = idToMatch != null && pattern.matcher(idToMatch).matches(); 105 106 if (log.isDebugEnabled()) 107 { 108 if (matches) 109 { 110 log.debug(tagName + "[" + idToMatch + "] matches filter: " + pattern); 111 } 112 else 113 { 114 log.debug(tagName + "[" + idToMatch + "] doesn't match filter: " + pattern); 115 } 116 } 117 118 return matches; 102 119 } 103 120 // -------------------------- 121 122 @Override 123 public String toString() 124 { 125 return "ExtensionPointFilter["+pattern+"]"; 126 } 127 128 129 104 130 } -
trunk/src/core/net/sf/basedb/util/extensions/xml/XmlLoader.java
r6880 r7224 223 223 public void setFilter(Filter<Element> filter) 224 224 { 225 log.debug("Using filter: " + filter); 225 226 this.filter = filter; 226 227 }
Note: See TracChangeset
for help on using the changeset viewer.