Author: rmannibucau Date: Thu Oct 27 20:21:26 2016 New Revision: 1766880 URL: http://svn.apache.org/viewvc?rev=1766880&view=rev Log: allowing AbstractMetaDataDiscovery children to customize URL logging
Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java?rev=1766880&r1=1766879&r2=1766880&view=diff ============================================================================== --- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java (original) +++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java Thu Oct 27 20:21:26 2016 @@ -341,10 +341,17 @@ public abstract class AbstractMetaDataDi */ protected void addWebBeansXmlLocation(URL beanArchiveUrl) { + // just the logging there to let children customize the way it is printed out, + // no logic there but in doAddWebBeansXmlLocation(URL) please if(logger.isLoggable(Level.INFO)) { logger.info("added beans archive URL: " + beanArchiveUrl.toExternalForm()); } + doAddWebBeansXmlLocation(beanArchiveUrl); + } + + protected void doAddWebBeansXmlLocation(final URL beanArchiveUrl) + { beanArchiveLocations.add(beanArchiveUrl); // and also scan the bean archive!