/** * Determine the order for this factory's aspect instance, * either an instance-specific order expressed through implementing * the {@link org.springframework.core.Ordered} interface, * or a fallback order. * @see org.springframework.core.Ordered * @see #getOrderForAspectClass */ @Override public int getOrder() { if (this.aspectInstance instanceof Ordered) { return ((Ordered) this.aspectInstance).getOrder(); } return getOrderForAspectClass(this.aspectInstance.getClass()); }
/** * Determine the order for this factory's aspect instance, * either an instance-specific order expressed through implementing * the {@link org.springframework.core.Ordered} interface, * or a fallback order. * @see org.springframework.core.Ordered * @see #getOrderForAspectClass */ @Override public int getOrder() { if (this.aspectInstance instanceof Ordered) { return ((Ordered) this.aspectInstance).getOrder(); } return getOrderForAspectClass(this.aspectInstance.getClass()); }
/** * Determine the order for this factory's aspect instance, * either an instance-specific order expressed through implementing * the {@link org.springframework.core.Ordered} interface, * or a fallback order. * @see org.springframework.core.Ordered * @see #getOrderForAspectClass */ @Override public int getOrder() { if (this.aspectInstance instanceof Ordered) { return ((Ordered) this.aspectInstance).getOrder(); } return getOrderForAspectClass(this.aspectInstance.getClass()); }