Class CachedMapVariableResolverFactory

    • Field Detail

      • variables

        protected java.util.Map<java.lang.String,​java.lang.Object> variables
        Holds the instance of the variables.
    • Constructor Detail

      • CachedMapVariableResolverFactory

        public CachedMapVariableResolverFactory()
      • CachedMapVariableResolverFactory

        public CachedMapVariableResolverFactory​(java.util.Map<java.lang.String,​java.lang.Object> variables)
      • CachedMapVariableResolverFactory

        public CachedMapVariableResolverFactory​(java.util.Map<java.lang.String,​java.lang.Object> variables,
                                                VariableResolverFactory nextFactory)
    • Method Detail

      • createVariable

        public VariableResolver createVariable​(java.lang.String name,
                                               java.lang.Object value)
        Description copied from interface: VariableResolverFactory
        Creates a new variable. This probably doesn't need to be implemented in most scenarios. This is used for variable assignment.
        Parameters:
        name - - name of the variable being created
        value - - value of the variable
        Returns:
        instance of the variable resolver associated with the variable
      • createVariable

        public VariableResolver createVariable​(java.lang.String name,
                                               java.lang.Object value,
                                               java.lang.Class<?> type)
        Description copied from interface: VariableResolverFactory
        Creates a new variable, and assigns a static type. It is expected the underlying factory and resolver will enforce this.
        Parameters:
        name - - name of the variable being created
        value - - value of the variable
        type - - the static type
        Returns:
        instance of the variable resolver associated with the variable
      • isResolveable

        public boolean isResolveable​(java.lang.String name)
        Description copied from interface: VariableResolverFactory
        Determines whether or not the variable is resolver in the chain of factories.
        Parameters:
        name - - variable name
        Returns:
        - boolean
      • isTarget

        public boolean isTarget​(java.lang.String name)
        Description copied from interface: VariableResolverFactory
        Deterimines whether or not the current VariableResolverFactory is the physical target for the actual variable.
        Parameters:
        name - - variable name
        Returns:
        - boolean indicating whether or not factory is the physical target