クラス MethodSecurityMetadataSourceAdvisor
java.lang.ObjectSE
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.security.access.intercept.aopalliance.MethodSecurityMetadataSourceAdvisor
- 実装されたすべてのインターフェース:
SerializableSE
、org.springframework.aop.Advisor
、org.springframework.aop.PointcutAdvisor
、org.springframework.beans.factory.Aware
、org.springframework.beans.factory.BeanFactoryAware
、org.springframework.core.Ordered
@DeprecatedSE
public class MethodSecurityMetadataSourceAdvisor
extends org.springframework.aop.support.AbstractPointcutAdvisor
implements org.springframework.beans.factory.BeanFactoryAware
使用すべきではありません。
MethodSecurityMetadataSource
によって駆動されるアドバイザー。パブリック(非セキュア)メソッドから MethodInterceptor
を除外するために使用されます。AOP フレームワークはアドバイスの計算をキャッシュするため、これは通常、MethodInterceptor
を実行して、実行する作業がないことを確認するよりも高速です。
このクラスでは、Spring の DefaultAdvisorAutoProxyCreator
を使用することもできます。これにより、セキュリティが必要なオブジェクトごとに ProxyFactoryBean
をセットアップするよりも構成が簡単になります。後処理はアプリケーションコンテキストに対してのみ自動化されるため、自動プロキシは BeanFactory 実装ではサポートされていないことに注意してください。
Spring の TransactionAttributeSourceAdvisor に基づいています。
- 関連事項:
フィールドサマリー
インターフェース org.springframework.aop.Advisor から継承されたフィールド
EMPTY_ADVICE
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターのサマリー
コンストラクターコンストラクター説明MethodSecurityMetadataSourceAdvisor
(StringSE adviceBeanName, MethodSecurityMetadataSource attributeSource, StringSE attributeSourceBeanName) 使用すべきではありません。アドバイザーをアドバイスから切り離したい状況のための代替コンストラクター。メソッドのサマリー
修飾子と型メソッド説明org.aopalliance.aop.Advice
使用すべきではありません。org.springframework.aop.Pointcut
使用すべきではありません。void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) 使用すべきではありません。クラス org.springframework.aop.support.AbstractPointcutAdvisor から継承されたメソッド
equals, getOrder, hashCode, setOrder
クラス java.lang.ObjectSE から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.aop.Advisor から継承されたメソッド
isPerInstance
コンストラクターの詳細
MethodSecurityMetadataSourceAdvisor
public MethodSecurityMetadataSourceAdvisor(StringSE adviceBeanName, MethodSecurityMetadataSource attributeSource, StringSE attributeSourceBeanName) 使用すべきではありません。アドバイザーをアドバイスから切り離したい状況のための代替コンストラクター。代わりに、アドバイス Bean 名を設定する必要があります。これにより、インターセプター(したがって AuthenticationManager)の先行したインスタンス化が防止されます。たとえば、SEC-773 を参照してください。Bean ファクトリルックアップを介した直列化をサポートするために、直接参照ではなく metadataSourceBeanName が使用されます。- パラメーター:
adviceBeanName
- MethodSecurityInterceptor の名前 BeanattributeSource
- SecurityMetadataSource (インターセプターで使用されているものと同じである必要があります)attributeSourceBeanName
- attributeSource の Bean 名 (直列化に必要)
メソッドの詳細
getPointcut
public org.springframework.aop.Pointcut getPointcut()使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.aop.PointcutAdvisor
のgetPointcut
getAdvice
public org.aopalliance.aop.Advice getAdvice()使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.aop.Advisor
のgetAdvice
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException 使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.beans.factory.BeanFactoryAware
のsetBeanFactory
- 例外:
org.springframework.beans.BeansException
EnableMethodSecurity
を使用するか、インターセプターを直接公開してください