org.springframework.context.annotation

Class ScopeMetadata

  • java.lang.Object
    • org.springframework.context.annotation.ScopeMetadata


  • public class ScopeMetadata
    extends java.lang.Object
    Describes scope characteristics for a Spring-managed bean including the scope name and the scoped-proxy behavior.

    The default scope is "singleton", and the default is to not create scoped-proxies.

    Since:
    2.5
    Author:
    Mark Fisher, Juergen Hoeller
    See Also:
    ScopeMetadataResolver, ScopedProxyMode
    • Constructor Detail

      • ScopeMetadata

        public ScopeMetadata()
    • Method Detail

      • setScopeName

        public void setScopeName(java.lang.String scopeName)
        Set the name of the scope.
      • getScopeName

        public java.lang.String getScopeName()
        Get the name of the scope.
      • setScopedProxyMode

        public void setScopedProxyMode(ScopedProxyMode scopedProxyMode)
        Set the proxy-mode to be applied to the scoped instance.
      • getScopedProxyMode

        public ScopedProxyMode getScopedProxyMode()
        Get the proxy-mode to be applied to the scoped instance.