Removed deprecated classes
This commit is contained in:
parent
c48f8215e6
commit
c26b9cbb75
|
@ -79,6 +79,7 @@ public abstract class AopNamespaceUtils {
|
|||
* {@link #registerAutoProxyCreatorIfNecessary(ParserContext, Element)} and
|
||||
* {@link AopConfigUtils#registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry, Object)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static void registerAutoProxyCreatorIfNecessary(ParserContext parserContext, Object source) {
|
||||
BeanDefinition beanDefinition = AopConfigUtils.registerAutoProxyCreatorIfNecessary(
|
||||
parserContext.getRegistry(), source);
|
||||
|
@ -89,6 +90,7 @@ public abstract class AopNamespaceUtils {
|
|||
* @deprecated since Spring 2.5, in favor of
|
||||
* {@link AopConfigUtils#forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static void forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry registry) {
|
||||
AopConfigUtils.forceAutoProxyCreatorToUseClassProxying(registry);
|
||||
}
|
||||
|
|
|
@ -44,6 +44,7 @@ public abstract class AopProxyUtils {
|
|||
* @deprecated as of Spring 2.0.3, in favor of <code>AopUtils.getTargetClass</code>
|
||||
* @see org.springframework.aop.support.AopUtils#getTargetClass(Object)
|
||||
*/
|
||||
@Deprecated
|
||||
public static Class getTargetClass(Object candidate) {
|
||||
Assert.notNull(candidate, "Candidate object must not be null");
|
||||
if (AopUtils.isCglibProxy(candidate)) {
|
||||
|
|
|
@ -377,6 +377,7 @@ public abstract class AbstractAutoProxyCreator extends ProxyConfig
|
|||
* @deprecated in favor of <code>isInfrastructureClass(beanClass)</code>
|
||||
* @see #isInfrastructureClass(Class)
|
||||
*/
|
||||
@Deprecated
|
||||
protected boolean isInfrastructureClass(Class beanClass, String beanName) {
|
||||
return isInfrastructureClass(beanClass);
|
||||
}
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
/*
|
||||
* Copyright 2002-2008 the original author or authors.
|
||||
*
|
||||
* 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.springframework.aop.interceptor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.aopalliance.intercept.MethodInterceptor;
|
||||
import org.aopalliance.intercept.MethodInvocation;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import org.springframework.util.ClassLoaderUtils;
|
||||
|
||||
/**
|
||||
* Trivial classloader analyzer interceptor.
|
||||
*
|
||||
* @author Rod Johnson
|
||||
* @author Dmitriy Kopylenko
|
||||
* @deprecated as of Spring 2.5, to be removed in Spring 3.0
|
||||
* @see org.springframework.util.ClassLoaderUtils
|
||||
*/
|
||||
public class ClassLoaderAnalyzerInterceptor implements MethodInterceptor, Serializable {
|
||||
|
||||
/** Static to avoid serializing the logger */
|
||||
protected static final Log logger = LogFactory.getLog(ClassLoaderAnalyzerInterceptor.class);
|
||||
|
||||
public Object invoke(MethodInvocation invocation) throws Throwable {
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info(
|
||||
ClassLoaderUtils.showClassLoaderHierarchy(
|
||||
invocation.getThis(),
|
||||
invocation.getThis().getClass().getName(),
|
||||
"\n",
|
||||
"-"));
|
||||
}
|
||||
return invocation.proceed();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue