类 Jsr330ScopeMetadataResolver

    • 方法详细资料

      • registerScope

        public final void registerScope​(Class<?> annotationType,
                                        String scopeName)
        Register an extended JSR-330 scope annotation, mapping it onto a specific Spring scope by name.
        参数:
        annotationType - the JSR-330 annotation type as a Class
        scopeName - the Spring scope name
      • registerScope

        public final void registerScope​(String annotationType,
                                        String scopeName)
        Register an extended JSR-330 scope annotation, mapping it onto a specific Spring scope by name.
        参数:
        annotationType - the JSR-330 annotation type by name
        scopeName - the Spring scope name
      • resolveScopeName

        protected String resolveScopeName​(String annotationType)
        Resolve the given annotation type into a named Spring scope.

        The default implementation simply checks against registered scopes. Can be overridden for custom mapping rules, e.g. naming conventions.

        参数:
        annotationType - the JSR-330 annotation type
        返回:
        the Spring scope name