Class ImportDefinition
java.lang.Object
org.springframework.beans.factory.parsing.ImportDefinition
- All Implemented Interfaces:
BeanMetadataElement
Representation of an import that has been processed during the parsing process.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionImportDefinition(String importedResource) Create a new ImportDefinition.ImportDefinition(String importedResource, @Nullable Object source) Create a new ImportDefinition.ImportDefinition(String importedResource, Resource @Nullable [] actualResources, @Nullable Object source) Create a new ImportDefinition. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringReturn the location of the imported resource.Return the configuration sourceObjectfor this metadata element (may benull).
-
Constructor Details
-
ImportDefinition
Create a new ImportDefinition.- Parameters:
importedResource- the location of the imported resource
-
ImportDefinition
Create a new ImportDefinition.- Parameters:
importedResource- the location of the imported resourcesource- the source object (may benull)
-
ImportDefinition
public ImportDefinition(String importedResource, Resource @Nullable [] actualResources, @Nullable Object source) Create a new ImportDefinition.- Parameters:
importedResource- the location of the imported resourcesource- the source object (may benull)
-
-
Method Details
-
getImportedResource
Return the location of the imported resource. -
getActualResources
-
getSource
Description copied from interface:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- Specified by:
getSourcein interfaceBeanMetadataElement
-