removed slf4j dependency
This commit is contained in:
@@ -38,8 +38,8 @@ import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.ApplicationEventPublisher;
|
||||
@@ -75,7 +75,7 @@ public class BasicMappingContext implements MappingContext, InitializingBean, Ap
|
||||
|
||||
private static final Set<String> UNMAPPED_FIELDS = new HashSet<String>(Arrays.asList("class", "this$0"));
|
||||
|
||||
protected Logger log = LoggerFactory.getLogger(getClass());
|
||||
protected Log log = LogFactory.getLog(getClass());
|
||||
protected ApplicationEventPublisher applicationEventPublisher;
|
||||
protected ConcurrentMap<TypeInformation, PersistentEntity<?>> persistentEntities = new ConcurrentHashMap<TypeInformation, PersistentEntity<?>>();
|
||||
protected ConcurrentMap<PersistentEntity<?>, List<Validator>> validators = new ConcurrentHashMap<PersistentEntity<?>, List<Validator>>();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.springframework.data.persistence;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
@@ -17,7 +17,7 @@ import java.util.Map;
|
||||
*/
|
||||
public abstract class AbstractConstructorEntityInstantiator<BACKING_INTERFACE, STATE> implements EntityInstantiator<BACKING_INTERFACE, STATE> {
|
||||
|
||||
private final Logger log = LoggerFactory.getLogger(getClass());
|
||||
private final Log log = LogFactory.getLog(getClass());
|
||||
private final Map<Class<? extends BACKING_INTERFACE>,StateBackedCreator<? extends BACKING_INTERFACE,STATE>> cache = new HashMap<Class<? extends BACKING_INTERFACE>,StateBackedCreator<? extends BACKING_INTERFACE,STATE>>();
|
||||
|
||||
final public <T extends BACKING_INTERFACE> T createEntityFromState(STATE n, Class<T> c) {
|
||||
|
||||
@@ -23,8 +23,8 @@ import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;
|
||||
import org.springframework.beans.factory.config.BeanDefinition;
|
||||
import org.springframework.beans.factory.parsing.BeanComponentDefinition;
|
||||
@@ -58,8 +58,8 @@ import org.w3c.dom.Element;
|
||||
public abstract class AbstractRepositoryConfigDefinitionParser<S extends GlobalRepositoryConfigInformation<T>, T extends SingleRepositoryConfigInformation<S>>
|
||||
implements BeanDefinitionParser {
|
||||
|
||||
private static final Logger LOG = LoggerFactory
|
||||
.getLogger(AbstractRepositoryConfigDefinitionParser.class);
|
||||
private static final Log LOG = LogFactory.getLog(
|
||||
AbstractRepositoryConfigDefinitionParser.class);
|
||||
|
||||
private static final String REPOSITORY_INTERFACE_POST_PROCESSOR =
|
||||
"org.springframework.data.repository.support.RepositoryInterfaceAwareBeanPostProcessor";
|
||||
@@ -223,12 +223,13 @@ public abstract class AbstractRepositoryConfigDefinitionParser<S extends GlobalR
|
||||
AbstractBeanDefinition beanDefinition = builder.getBeanDefinition();
|
||||
beanDefinition.setSource(beanSource);
|
||||
|
||||
LOG.debug(
|
||||
"Registering repository: {} - Interface: {} - Factory: {}, - Custom implementation: {}",
|
||||
new Object[] { context.getBeanId(),
|
||||
context.getInterfaceName(),
|
||||
context.getRepositoryFactoryBeanClassName(),
|
||||
customImplementationBeanName });
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(
|
||||
"Registering repository: " + context.getBeanId() +
|
||||
" - Interface: " + context.getInterfaceName() +
|
||||
" - Factory: " + context.getRepositoryFactoryBeanClassName() +
|
||||
", - Custom implementation: " + customImplementationBeanName);
|
||||
}
|
||||
|
||||
BeanComponentDefinition definition =
|
||||
new BeanComponentDefinition(beanDefinition,
|
||||
@@ -285,9 +286,11 @@ public abstract class AbstractRepositoryConfigDefinitionParser<S extends GlobalR
|
||||
return null;
|
||||
}
|
||||
|
||||
LOG.debug("Registering custom repository implementation: {} {}",
|
||||
config.getImplementationBeanName(),
|
||||
beanDefinition.getBeanClassName());
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Registering custom repository implementation: " +
|
||||
config.getImplementationBeanName() + " " +
|
||||
beanDefinition.getBeanClassName());
|
||||
}
|
||||
|
||||
beanDefinition.setSource(source);
|
||||
parser.registerBeanComponent(new BeanComponentDefinition(
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package org.springframework.data.transaction;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.data.persistence.ChangeSetBacked;
|
||||
import org.springframework.data.persistence.ChangeSetPersister;
|
||||
import org.springframework.transaction.support.TransactionSynchronization;
|
||||
|
||||
public class ChangeSetBackedTransactionSynchronization implements TransactionSynchronization {
|
||||
|
||||
protected final Logger log = LoggerFactory.getLogger(getClass());
|
||||
protected final Log log = LogFactory.getLog(getClass());
|
||||
|
||||
private ChangeSetPersister<Object> changeSetPersister;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user