superman
7 years ago
2302 changed files with 325221 additions and 8 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,60 @@
|
||||
/* |
||||
* Copyright 2002-2012 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 com.fr.third.springframework.aop; |
||||
|
||||
import org.aopalliance.aop.Advice; |
||||
|
||||
/** |
||||
* Base interface holding AOP <b>advice</b> (action to take at a joinpoint) |
||||
* and a filter determining the applicability of the advice (such as |
||||
* a pointcut). <i>This interface is not for use by Spring users, but to |
||||
* allow for commonality in support for different types of advice.</i> |
||||
* |
||||
* <p>Spring AOP is based around <b>around advice</b> delivered via method |
||||
* <b>interception</b>, compliant with the AOP Alliance interception API. |
||||
* The Advisor interface allows support for different types of advice, |
||||
* such as <b>before</b> and <b>after</b> advice, which need not be |
||||
* implemented using interception. |
||||
* |
||||
* @author Rod Johnson |
||||
*/ |
||||
public interface Advisor { |
||||
|
||||
/** |
||||
* Return the advice part of this aspect. An advice may be an |
||||
* interceptor, a before advice, a throws advice, etc. |
||||
* @return the advice that should apply if the pointcut matches |
||||
* @see org.aopalliance.intercept.MethodInterceptor |
||||
* @see BeforeAdvice |
||||
* @see ThrowsAdvice |
||||
* @see AfterReturningAdvice |
||||
*/ |
||||
Advice getAdvice(); |
||||
|
||||
/** |
||||
* Return whether this advice is associated with a particular instance |
||||
* (for example, creating a mixin) or shared with all instances of |
||||
* the advised class obtained from the same Spring bean factory. |
||||
* <p><b>Note that this method is not currently used by the framework.</b> |
||||
* Typical Advisor implementations always return {@code true}. |
||||
* Use singleton/prototype bean definitions or appropriate programmatic |
||||
* proxy creation to ensure that Advisors have the correct lifecycle model. |
||||
* @return whether this advice is associated with a particular target instance |
||||
*/ |
||||
boolean isPerInstance(); |
||||
|
||||
} |
@ -0,0 +1,31 @@
|
||||
/* |
||||
* Copyright 2002-2007 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 com.fr.third.springframework.aop; |
||||
|
||||
import org.aopalliance.aop.Advice; |
||||
|
||||
/** |
||||
* Common marker interface for after advice, |
||||
* such as {@link AfterReturningAdvice} and {@link ThrowsAdvice}. |
||||
* |
||||
* @author Juergen Hoeller |
||||
* @since 2.0.3 |
||||
* @see BeforeAdvice |
||||
*/ |
||||
public interface AfterAdvice extends Advice { |
||||
|
||||
} |
@ -0,0 +1,44 @@
|
||||
/* |
||||
* Copyright 2002-2012 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 com.fr.third.springframework.aop; |
||||
|
||||
import java.lang.reflect.Method; |
||||
|
||||
/** |
||||
* After returning advice is invoked only on normal method return, not if an |
||||
* exception is thrown. Such advice can see the return value, but cannot change it. |
||||
* |
||||
* @author Rod Johnson |
||||
* @see MethodBeforeAdvice |
||||
* @see ThrowsAdvice |
||||
*/ |
||||
public interface AfterReturningAdvice extends AfterAdvice { |
||||
|
||||
/** |
||||
* Callback after a given method successfully returned. |
||||
* @param returnValue the value returned by the method, if any |
||||
* @param method method being invoked |
||||
* @param args arguments to the method |
||||
* @param target target of the method invocation. May be {@code null}. |
||||
* @throws Throwable if this object wishes to abort the call. |
||||
* Any exception thrown will be returned to the caller if it's |
||||
* allowed by the method signature. Otherwise the exception |
||||
* will be wrapped as a runtime exception. |
||||
*/ |
||||
void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable; |
||||
|
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue