* 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;
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
* 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.
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);
}
}
}