Class ImportDefinition

java.lang.Object
org.springframework.beans.factory.parsing.ImportDefinition
All Implemented Interfaces:
BeanMetadataElement

public class ImportDefinition extends Object implements BeanMetadataElement
Representation of an import that has been processed during the parsing process.
Since:
2.0
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • ImportDefinition

      public ImportDefinition(String importedResource)
      Create a new ImportDefinition.
      Parameters:
      importedResource - the location of the imported resource
    • ImportDefinition

      public ImportDefinition(String importedResource, @Nullable Object source)
      Create a new ImportDefinition.
      Parameters:
      importedResource - the location of the imported resource
      source - the source object (may be null)
    • ImportDefinition

      public ImportDefinition(String importedResource, @Nullable Resource[] actualResources, @Nullable Object source)
      Create a new ImportDefinition.
      Parameters:
      importedResource - the location of the imported resource
      source - the source object (may be null)
  • Method Details

    • getImportedResource

      public final String getImportedResource()
      Return the location of the imported resource.
    • getActualResources

      @Nullable public final Resource[] getActualResources()
    • getSource

      @Nullable public final Object getSource()
      Description copied from interface: BeanMetadataElement
      Return the configuration source Object for this metadata element (may be null).
      Specified by:
      getSource in interface BeanMetadataElement