Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions spring-aop/src/main/java/org/springframework/aop/Advisor.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@

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
* 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.
* <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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import org.aopalliance.aop.Advice;

/**
/**
* Subinterface of AOP Alliance Advice that allows additional interfaces
* to be implemented by an Advice, and available via a proxy using that
* interceptor. This is a fundamental AOP concept called <b>introduction</b>.
Expand All @@ -37,7 +37,7 @@
* @see IntroductionAdvisor
*/
public interface DynamicIntroductionAdvice extends Advice {

/**
* Does this introduction advice implement the given interface?
* @param intf the interface to check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @see IntroductionInterceptor
*/
public interface IntroductionAdvisor extends Advisor, IntroductionInfo {

/**
* Return the filter determining which target classes this introduction
* should apply to.
Expand All @@ -39,7 +39,7 @@ public interface IntroductionAdvisor extends Advisor, IntroductionInfo {
* @return the class filter
*/
ClassFilter getClassFilter();

/**
* Can the advised interfaces be implemented by the introduction advice?
* Invoked before adding an IntroductionAdvisor.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* 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.
Expand Down Expand Up @@ -39,6 +39,6 @@ public interface IntroductionAwareMethodMatcher extends MethodMatcher {
* asking is the subject on one or more introductions; <code>false</code> otherwise
* @return whether or not this method matches statically
*/
boolean matches(Method method, Class targetClass, boolean hasIntroductions);
boolean matches(Method method, Class<?> targetClass, boolean hasIntroductions);

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* 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.
Expand Down Expand Up @@ -29,11 +29,11 @@
* @since 1.1.1
*/
public interface IntroductionInfo {

/**
* Return the additional interfaces introduced by this Advisor or Advice.
* @return the introduced interfaces
*/
Class[] getInterfaces();
Class<?>[] getInterfaces();

}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* Copyright 2002-2005 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.
Expand All @@ -28,7 +28,7 @@
* @author Rod Johnson
*/
public interface MethodBeforeAdvice extends BeforeAdvice {

/**
* Callback before a given method is invoked.
* @param method method being invoked
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* Copyright 2002-2005 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2006 the original author or authors.
* 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.
Expand All @@ -24,19 +24,19 @@
* @author Rod Johnson
*/
class TrueClassFilter implements ClassFilter, Serializable {

public static final TrueClassFilter INSTANCE = new TrueClassFilter();

/**
* Enforce Singleton pattern.
*/
private TrueClassFilter() {
}

public boolean matches(Class clazz) {
public boolean matches(Class<?> clazz) {
return true;
}

/**
* Required to support serialization. Replaces with canonical
* instance on deserialization, protecting Singleton pattern.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2006 the original author or authors.
* 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.
Expand All @@ -25,9 +25,9 @@
* @author Rod Johnson
*/
class TrueMethodMatcher implements MethodMatcher, Serializable {

public static final TrueMethodMatcher INSTANCE = new TrueMethodMatcher();

/**
* Enforce Singleton pattern.
*/
Expand All @@ -38,15 +38,15 @@ public boolean isRuntime() {
return false;
}

public boolean matches(Method method, Class targetClass) {
public boolean matches(Method method, Class<?> targetClass) {
return true;
}

public boolean matches(Method method, Class targetClass, Object[] args) {
public boolean matches(Method method, Class<?> targetClass, Object[] args) {
// Should never be invoked as isRuntime returns false.
throw new UnsupportedOperationException();
}

/**
* Required to support serialization. Replaces with canonical
* instance on deserialization, protecting Singleton pattern.
Expand All @@ -55,7 +55,7 @@ public boolean matches(Method method, Class targetClass, Object[] args) {
private Object readResolve() {
return INSTANCE;
}

@Override
public String toString() {
return "MethodMatcher.TRUE";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
* @author Rod Johnson
*/
class TruePointcut implements Pointcut, Serializable {

public static final TruePointcut INSTANCE = new TruePointcut();

/**
* Enforce Singleton pattern.
*/
Expand All @@ -40,7 +40,7 @@ public ClassFilter getClassFilter() {
public MethodMatcher getMethodMatcher() {
return MethodMatcher.TRUE;
}

/**
* Required to support serialization. Replaces with canonical
* instance on deserialization, protecting Singleton pattern.
Expand Down
Loading