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:
ReaderEventListener.importProcessed(ImportDefinition)
Constructor Summary
Constructors Constructor Description ImportDefinition(String importedResource)Create a new ImportDefinition.ImportDefinition(String importedResource, Object source)Create a new ImportDefinition.ImportDefinition(String importedResource, Resource[] actualResources, Object source)Create a new ImportDefinition.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource[]getActualResources()StringgetImportedResource()Return the location of the imported resource.ObjectgetSource()Return the configuration sourceObjectfor this metadata element (may benull).
Constructor Detail
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 resourcesource- the source object (may benull)
Method Detail
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:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- Specified by:
getSourcein interfaceBeanMetadataElement