クラス WebXmlMappableAttributesRetriever

  • 実装されたすべてのインターフェース:
    org.springframework.beans.factory.Awareorg.springframework.beans.factory.InitializingBeanorg.springframework.context.ResourceLoaderAwareMappableAttributesRetriever

    public class WebXmlMappableAttributesRetriever
    extends java.lang.Object
    implements org.springframework.context.ResourceLoaderAware, MappableAttributesRetriever, org.springframework.beans.factory.InitializingBean
    この MappableAttributesRetriever 実装は、定義された J2EE ロールのリストを web.xml ファイルから読み取り、{getMappableAttributes() から返します。
    導入:
    2.0
    • フィールドサマリー

      フィールド  
      修飾子と型 フィールド 説明
      protected org.apache.commons.logging.Loglogger
    • メソッドのサマリー

      すべてのメソッド   インスタンスメソッド   具象メソッド  
      修飾子と型 メソッド 説明
      voidafterPropertiesSet()
      構成された ResourceLoader を使用して web.xml ファイルをロードし、それらから mappableAttributes のセットとして使用して、ロール名要素を解析します。
      java.util.Set<java.lang.String>getMappableAttributes()
      このメソッドの実装は、 GrantedAuthority にマップできるすべての文字列属性のセットを返す必要があります。
      voidsetResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
      • クラス java.lang.Object から継承されたメソッド

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • フィールドの詳細

      • logger

        protected final org.apache.commons.logging.Log logger
    • コンストラクターの詳細

      • WebXmlMappableAttributesRetriever

        public WebXmlMappableAttributesRetriever()
    • メソッドの詳細

      • setResourceLoader

        public void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
        次で指定:
        インターフェース org.springframework.context.ResourceLoaderAwaresetResourceLoader 
      • getMappableAttributes

        public java.util.Set<java.lang.String> getMappableAttributes()
        インターフェースからコピーされた説明: MappableAttributesRetriever
        このメソッドの実装は、 GrantedAuthority にマップできるすべての文字列属性のセットを返す必要があります。
        次で指定:
        インターフェース MappableAttributesRetrievergetMappableAttributes 
        戻り値:
        すべてのマッピング可能なロールのセット
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        構成された ResourceLoader を使用して web.xml ファイルをロードし、それらから mappableAttributes のセットとして使用して、ロール名要素を解析します。
        次で指定:
        インターフェース org.springframework.beans.factory.InitializingBeanafterPropertiesSet 
        例外:
        java.lang.Exception