X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fioc%2FBeanKernel.java;h=54f7b3f3567bb43dd427ec38487fa44943fee27d;hb=e72743b6a9fac5a99b842f92b1687fba65ef3210;hp=3118b5d5344856882131e1f0f15193dd82da35f9;hpb=8e8ee09c167988d6368715a0ad60dfbb59d5fc96;p=utils diff --git a/support/general/src/main/java/org/wamblee/ioc/BeanKernel.java b/support/general/src/main/java/org/wamblee/ioc/BeanKernel.java index 3118b5d5..54f7b3f3 100644 --- a/support/general/src/main/java/org/wamblee/ioc/BeanKernel.java +++ b/support/general/src/main/java/org/wamblee/ioc/BeanKernel.java @@ -12,12 +12,9 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ + */ package org.wamblee.ioc; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - import org.wamblee.io.ClassPathResource; import org.wamblee.io.InputResource; @@ -25,6 +22,8 @@ import java.io.IOException; import java.io.InputStream; import java.util.Properties; +import java.util.logging.Level; +import java.util.logging.Logger; /** * The standard means to obtain the bean factory. This works by reading a @@ -34,7 +33,8 @@ import java.util.Properties; * a no-arg constructor. */ public final class BeanKernel { - private static final Log LOG = LogFactory.getLog(BeanKernel.class); + private static final Logger LOG = Logger.getLogger(BeanKernel.class + .getName()); /** * Bean factory kernel properties file. @@ -120,7 +120,7 @@ public final class BeanKernel { is.close(); } catch (IOException e) { // last resort cannot do much now. - LOG.error("Error closing resource " + resource); + LOG.log(Level.WARNING, "Error closing resource " + resource, e); } } }