Module java.money
Package javax.money

Class AbstractQuery

    • Field Detail

      • KEY_QUERY_PROVIDERS

        protected static final java.lang.String KEY_QUERY_PROVIDERS
        Key for storing the target providers to be queried
        See Also:
        Constant Field Values
      • KEY_QUERY_TIMESTAMP

        protected static final java.lang.String KEY_QUERY_TIMESTAMP
        Key name for the timestamp attribute.
        See Also:
        Constant Field Values
      • KEY_QUERY_TARGET_TYPE

        protected static final java.lang.String KEY_QUERY_TARGET_TYPE
        Key name for the target type attribute.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractQuery

        protected AbstractQuery​(AbstractQueryBuilder builder)
        Constructor, using a builder.
        Parameters:
        builder - the builder, not null.
    • Method Detail

      • getProviderNames

        public java.util.List<java.lang.String> getProviderNames()
        Returns the providers and their ordering to be considered. This information typically must be interpreted by the singleton SPI implementations, which are backing the singleton accessors. If the list returned is empty, the default provider list, determined by methods like getDefaultProviderNames() should be used.
        Returns:
        the ordered providers, never null.
      • getTargetType

        public java.lang.Class<?> getTargetType()
        Gets the target implementation type required. This can be used to explicitly acquire a specific implementation type and use a query to configure the instance or factory to be returned.
        Returns:
        this Builder for chaining.