Class BeanImportModel

java.lang.Object
org.springframework.webflow.engine.model.AbstractModel
org.springframework.webflow.engine.model.BeanImportModel
All Implemented Interfaces:
Model

public class BeanImportModel extends AbstractModel
Model support for bean imports.

Imports user-defined beans defined at a resource location. These beans become part of the flow's bean factory and are resolvable using flow expressions.

Author:
Scott Andrews
  • Constructor Details

    • BeanImportModel

      public BeanImportModel(String resource)
      Create a bean import model
      Parameters:
      resource - the resource containing beans to import
  • Method Details

    • isMergeableWith

      public boolean isMergeableWith(Model model)
      Description copied from interface: Model
      Determine if the model is able to be merged into the current model
      Parameters:
      model - the model to compare
      Returns:
      true if able to merge
    • merge

      public void merge(Model model)
      Description copied from interface: Model
      Merge the model into the current model
      Parameters:
      model - the model to merge with
    • createCopy

      public Model createCopy()
      Description copied from interface: Model
      Create a deep copy of this model. Needed when merging models and collections.
      Returns:
      a deep copy of this model
    • getResource

      public String getResource()
      Returns:
      the resource
    • setResource

      public void setResource(String resource)
      Parameters:
      resource - the resource to set