master
qi_liang 4 years ago
parent 143e6b01a3
commit 9be887cc6d
  1. 1
      spring-aop/src/main/java/org/aopalliance/aop/Advice.java
  2. 2
      spring-aop/src/main/java/org/aopalliance/aop/AspectException.java
  3. 1
      spring-aop/src/main/java/org/aopalliance/aop/package-info.java
  4. 6
      spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
  5. 1
      spring-beans/src/main/java/org/springframework/beans/factory/BeanFactory.java
  6. 1
      spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java
  7. 1
      spring-context/src/main/java/org/springframework/context/support/AbstractRefreshableConfigApplicationContext.java
  8. 4
      spring-context/src/main/java/org/springframework/context/support/ClassPathXmlApplicationContext.java
  9. 1
      spring-test/src/main/java/org/springframework/mock/env/MockEnvironment.java

@ -19,6 +19,7 @@ package org.aopalliance.aop;
/**
* Tag interface for Advice. Implementations can be any type
* of advice, such as Interceptors.
* 提供建议的标签接口实现可以是任何类型的通知比如拦截器
*
* @author Rod Johnson
* @version $Id: Advice.java,v 1.1 2004/03/19 17:02:16 johnsonr Exp $

@ -18,8 +18,10 @@ package org.aopalliance.aop;
/**
* Superclass for all AOP infrastructure exceptions.
* 所有AOP基础结构异常的超类
* Unchecked, as such exceptions are fatal and end user
* code shouldn't be forced to catch them.
* 未选中因为此类异常是致命的不应该强迫终端用户代码捕获它们
*
* @author Rod Johnson
* @author Bob Lee

@ -1,4 +1,5 @@
/**
* The core AOP Alliance advice marker.
* 核心AOP联盟建议标记
*/
package org.aopalliance.aop;

@ -783,10 +783,4 @@ public abstract class BeanUtils {
}
public static void main(String[] args) {
System.out.println("============");
}
}

@ -139,7 +139,6 @@ public interface BeanFactory {
Object getBean(String name) throws BeansException;
/**
* 返回指定bean的实例该实例可以是共享的或独立的
* <p>Behaves the same as {@link #getBean(String)}, but provides a measure of type
* safety by throwing a BeanNotOfRequiredTypeException if the bean is not of the
* required type. This means that ClassCastException can't be thrown on casting

@ -506,6 +506,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
/**
* Return the list of statically specified ApplicationListeners.
* 返回静态指定的ApplicationListeners列表
*/
public Collection<ApplicationListener<?>> getApplicationListeners() {
return this.applicationListeners;

@ -71,6 +71,7 @@ public abstract class AbstractRefreshableConfigApplicationContext extends Abstra
/**
* Set the config locations for this application context.
* 设置此应用程序上下文的配置位置
* <p>If not set, the implementation may use a default as appropriate.
*/
public void setConfigLocations(@Nullable String... locations) {

@ -78,7 +78,8 @@ public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContex
/**
* Create a new ClassPathXmlApplicationContext, loading the definitions
* from the given XML file and automatically refreshing the context.
* @param configLocation resource location
* 创建一个新的ClassPathXmlApplicationContext从给定的XML文件加载定义并自动刷新上下文
* @param configLocation resource location 资源位置
* @throws BeansException if context creation failed
*/
public ClassPathXmlApplicationContext(String configLocation) throws BeansException {
@ -126,6 +127,7 @@ public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContex
/**
* Create a new ClassPathXmlApplicationContext with the given parent,
* loading the definitions from the given XML files.
* 使用给定的父级创建一个新的ClassPathXmlApplicationContext从给定的XML文件加载定义
* @param configLocations array of resource locations
* @param refresh whether to automatically refresh the context,
* loading all bean definitions and creating all singletons.

@ -58,4 +58,5 @@ public class MockEnvironment extends AbstractEnvironment {
return this;
}
}

Loading…
Cancel
Save