Class BindingInfoRegistry

    • Constructor Detail

      • BindingInfoRegistry

        public BindingInfoRegistry()
    • Method Detail

      • addBindingInfoProvider

        protected void addBindingInfoProvider​(BindingInfoProvider bindingInfoProvider)
      • removeBindingInfoProvider

        protected void removeBindingInfoProvider​(BindingInfoProvider bindingInfoProvider)
      • getBindingInfo

        public @Nullable BindingInfo getBindingInfo​(@Nullable String id)
        Returns the binding information for the specified binding ID, or null if no binding information could be found.
        Parameters:
        id - the ID to be looked for (could be null or empty)
        Returns:
        a binding information object (could be null)
      • getBindingInfo

        public @Nullable BindingInfo getBindingInfo​(@Nullable String id,
                                                    @Nullable Locale locale)
        Returns the binding information for the specified binding ID and locale (language), or null if no binding information could be found.
        Parameters:
        id - the ID to be looked for (could be null or empty)
        locale - the locale to be used for the binding information (could be null)
        Returns:
        a localized binding information object (could be null)
      • getBindingInfos

        public Set<BindingInfo> getBindingInfos()
        Returns all binding information this registry contains.
        Returns:
        a set of all binding information this registry contains (not null, could be empty)
      • getBindingInfos

        public Set<BindingInfo> getBindingInfos​(@Nullable Locale locale)
        Returns all binding information in the specified locale (language) this registry contains.
        Parameters:
        locale - the locale to be used for the binding information (could be null)
        Returns:
        a localized set of all binding information this registry contains (not null, could be empty)