Issue #2552 - replace Logger with UFStatus

Former-commit-id: c938d03deb [formerly ff968c9884] [formerly 0bdb25bf43 [formerly 10971eca8d10817c97073c6142ea7cf08b28fa27]]
Former-commit-id: 0bdb25bf43
Former-commit-id: da148196ac
This commit is contained in:
Bryan Kowal 2013-11-19 17:11:36 -06:00
parent c680cc3ea9
commit be5b0b83c9
2 changed files with 8 additions and 8 deletions

View file

@ -13,8 +13,7 @@ Require-Bundle: javax.persistence;bundle-version="1.0.0",
org.apache.commons.cxf;bundle-version="1.0.0",
com.raytheon.uf.common.status;bundle-version="1.12.1174",
com.raytheon.uf.common.util;bundle-version="1.12.1174",
org.reflections;bundle-version="0.9.9",
org.apache.commons.logging;bundle-version="1.1.2"
org.reflections;bundle-version="0.9.9"
Export-Package: com.raytheon.uf.common.registry,
com.raytheon.uf.common.registry.schemas.ebxml.util,
com.raytheon.uf.common.registry.schemas.ebxml.util.annotations,

View file

@ -30,10 +30,10 @@ import org.reflections.Reflections;
import org.reflections.scanners.TypeAnnotationsScanner;
import org.reflections.util.ClasspathHelper;
import org.reflections.util.ConfigurationBuilder;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.raytheon.uf.common.serialization.JAXBManager;
import com.raytheon.uf.common.status.IUFStatusHandler;
import com.raytheon.uf.common.status.UFStatus;
/**
* A JAXB Manager for transforming EBXML objects to/from XML.
@ -58,7 +58,8 @@ import com.raytheon.uf.common.serialization.JAXBManager;
public class EbxmlJaxbManager {
/** The logger */
private static Log theLogger = LogFactory.getLog(EbxmlJaxbManager.class);
private static final transient IUFStatusHandler statusHandler = UFStatus
.getHandler(EbxmlJaxbManager.class);
private static EbxmlJaxbManager instance;
@ -74,7 +75,7 @@ public class EbxmlJaxbManager {
}
public String findJaxables(String packageName) {
theLogger.info("Scanning package ... " + packageName);
statusHandler.info("Scanning package ... " + packageName);
long t0 = System.currentTimeMillis();
ConfigurationBuilder cb = new ConfigurationBuilder();
@ -93,7 +94,7 @@ public class EbxmlJaxbManager {
jaxables.addAll(set);
}
long t1 = System.currentTimeMillis();
theLogger.info("Found " + set.size() + " classes for ebxml in "
statusHandler.info("Found " + set.size() + " classes for ebxml in "
+ (t1 - t0) + " ms");
// if jaxb has already been initialized, reset it so that it will be
// recreated with the latest set of jaxable classes.
@ -121,6 +122,6 @@ public class EbxmlJaxbManager {
jaxables.add(oasis.names.tc.ebxml.regrep.xsd.rs.v4.ObjectFactory.class);
jaxables.add(oasis.names.tc.ebxml.regrep.xsd.spi.v4.ObjectFactory.class);
theLogger.info("Initialization Complete.");
statusHandler.info("Initialization Complete.");
}
}