polishing
This commit is contained in:
parent
8ee0363776
commit
7048689269
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2007 the original author or authors.
|
* Copyright 2002-2009 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -84,7 +84,7 @@ public class SimpleAspectInstanceFactory implements AspectInstanceFactory {
|
||||||
* <p>The default implementation simply returns <code>Ordered.LOWEST_PRECEDENCE</code>.
|
* <p>The default implementation simply returns <code>Ordered.LOWEST_PRECEDENCE</code>.
|
||||||
* @param aspectClass the aspect class
|
* @param aspectClass the aspect class
|
||||||
*/
|
*/
|
||||||
protected int getOrderForAspectClass(Class aspectClass) {
|
protected int getOrderForAspectClass(Class<?> aspectClass) {
|
||||||
return Ordered.LOWEST_PRECEDENCE;
|
return Ordered.LOWEST_PRECEDENCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2007 the original author or authors.
|
* Copyright 2002-2009 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -74,7 +74,7 @@ public class SingletonAspectInstanceFactory implements AspectInstanceFactory {
|
||||||
* <p>The default implementation simply returns <code>Ordered.LOWEST_PRECEDENCE</code>.
|
* <p>The default implementation simply returns <code>Ordered.LOWEST_PRECEDENCE</code>.
|
||||||
* @param aspectClass the aspect class
|
* @param aspectClass the aspect class
|
||||||
*/
|
*/
|
||||||
protected int getOrderForAspectClass(Class aspectClass) {
|
protected int getOrderForAspectClass(Class<?> aspectClass) {
|
||||||
return Ordered.LOWEST_PRECEDENCE;
|
return Ordered.LOWEST_PRECEDENCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2007 the original author or authors.
|
* Copyright 2002-2009 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -57,8 +57,8 @@ public class SimpleMetadataAwareAspectInstanceFactory extends SimpleAspectInstan
|
||||||
* @param aspectClass the aspect class
|
* @param aspectClass the aspect class
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected int getOrderForAspectClass(Class aspectClass) {
|
protected int getOrderForAspectClass(Class<?> aspectClass) {
|
||||||
Order order = (Order) aspectClass.getAnnotation(Order.class);
|
Order order = aspectClass.getAnnotation(Order.class);
|
||||||
if (order != null) {
|
if (order != null) {
|
||||||
return order.value();
|
return order.value();
|
||||||
}
|
}
|
||||||
|
|
@ -66,4 +66,3 @@ public class SimpleMetadataAwareAspectInstanceFactory extends SimpleAspectInstan
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2007 the original author or authors.
|
* Copyright 2002-2009 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -58,8 +58,8 @@ public class SingletonMetadataAwareAspectInstanceFactory extends SingletonAspect
|
||||||
* @see org.springframework.core.annotation.Order
|
* @see org.springframework.core.annotation.Order
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected int getOrderForAspectClass(Class aspectClass) {
|
protected int getOrderForAspectClass(Class<?> aspectClass) {
|
||||||
Order order = (Order) aspectClass.getAnnotation(Order.class);
|
Order order = aspectClass.getAnnotation(Order.class);
|
||||||
if (order != null) {
|
if (order != null) {
|
||||||
return order.value();
|
return order.value();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue