Interface ProductNamespaceExtender


  • public interface ProductNamespaceExtender
    Extends product namespaces which are used for expression evaluation. Clients are asked to register symbols or functions derived from a product into the given namespace.

    New extenders can be provided by the JAR Service Provider Interface via the file META-INF/services/ProductNamespaceExtender.

    Since:
    SNAP 2
    • Method Detail

      • extendNamespace

        void extendNamespace​(Product product,
                             String namePrefix,
                             WritableNamespace namespace)
        Extend the namespace by extra product symbols or functions. All new symbol or function names must be prefixed using the given prefix string.
        Parameters:
        product - The product.
        namePrefix - The prefix for new symbol or function names.
        namespace - The namespace to extend.