[jboss-cvs] apache/commons-logging/src/test/org/apache/commons/logging/tccl/custom ...
Scott Stark
scott.stark at jboss.com
Fri Feb 9 01:57:18 EST 2007
User: starksm
Date: 07/02/09 01:57:18
Added: commons-logging/src/test/org/apache/commons/logging/tccl/custom
MyLogFactoryImpl.java MyLog.java
Log:
Update to the http://apache.ziply.com/jakarta/commons/logging/source/commons-logging-1.1-src.zip release
Revision Changes Path
1.1 date: 2007/02/09 06:57:18; author: starksm; state: Exp;apache/commons-logging/src/test/org/apache/commons/logging/tccl/custom/MyLogFactoryImpl.java
Index: MyLogFactoryImpl.java
===================================================================
/*
* Copyright 2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* 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.apache.commons.logging.tccl.custom;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class MyLogFactoryImpl extends LogFactory {
public Object getAttribute(String name) { return null; }
public String[] getAttributeNames() { return null; }
public Log getInstance(Class clazz) { return null; }
public Log getInstance(String name) { return null; }
public void release() {}
public void removeAttribute(String name) {}
public void setAttribute(String name, Object value) {}
}
1.1 date: 2007/02/09 06:57:18; author: starksm; state: Exp;apache/commons-logging/src/test/org/apache/commons/logging/tccl/custom/MyLog.java
Index: MyLog.java
===================================================================
/*
* Copyright 2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* 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.apache.commons.logging.tccl.custom;
import org.apache.commons.logging.Log;
public class MyLog implements Log {
public MyLog(String category) {}
public boolean isDebugEnabled() { return false; }
public boolean isErrorEnabled() { return false; }
public boolean isFatalEnabled() { return false; }
public boolean isInfoEnabled() { return false; }
public boolean isTraceEnabled() { return false; }
public boolean isWarnEnabled() { return false; }
public void trace(Object message) {}
public void trace(Object message, Throwable t) {}
public void debug(Object message) {}
public void debug(Object message, Throwable t) {}
public void info(Object message) {}
public void info(Object message, Throwable t) {}
public void warn(Object message) {}
public void warn(Object message, Throwable t) {}
public void error(Object message) {}
public void error(Object message, Throwable t) {}
public void fatal(Object message) {}
public void fatal(Object message, Throwable t) {}
}
More information about the jboss-cvs-commits
mailing list