Top Description Fields Constructors Methods
org.springframework.beans.factory.parsing

public Class ImportDefinition

extends Object
implements BeanMetadataElement
Class Inheritance
All Implemented Interfaces
org.springframework.beans.BeanMetadataElement
Imports
org.springframework.beans.BeanMetadataElement, org.springframework.core.io.Resource, org.springframework.lang.Nullable, org.springframework.util.Assert

Representation of an import that has been processed during the parsing process.
Author
Juergen Hoeller
Since
2.0
See Also
ReaderEventListener#importProcessed(ImportDefinition)

Field Summary

Modifier and TypeField and Description
private final Resource[]
private final String
private final Object

Constructor Summary

AccessConstructor and Description
public
ImportDefinition(String
the location of the imported resource
importedResource
)

Create a new ImportDefinition.

public
ImportDefinition(String
the location of the imported resource
importedResource
,
Object
the source object (may be null)
source
)

Create a new ImportDefinition.

public
ImportDefinition(String
the location of the imported resource
importedResource
,
Resource[] actualResources, Object
the source object (may be null)
source
)

Create a new ImportDefinition.

Method Summary

Modifier and TypeMethod and Description
public final Resource[]
public final String
getImportedResource()

Return the location of the imported resource.

public final Object
getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

actualResourcesback to summary
private final Resource[] actualResources
Annotations
@Nullable
importedResourceback to summary
private final String importedResource
sourceback to summary
private final Object source
Annotations
@Nullable

Constructor Detail

ImportDefinitionback to summary
public ImportDefinition(String importedResource)

Create a new ImportDefinition.

Parameters
importedResource:String

the location of the imported resource

ImportDefinitionback to summary
public ImportDefinition(String importedResource, Object source)

Create a new ImportDefinition.

Parameters
importedResource:String

the location of the imported resource

source:Object

the source object (may be null)

ImportDefinitionback to summary
public ImportDefinition(String importedResource, Resource[] actualResources, Object source)

Create a new ImportDefinition.

Parameters
importedResource:String

the location of the imported resource

source:Object

the source object (may be null)

Method Detail

getActualResourcesback to summary
public final Resource[] getActualResources()
Annotations
@Nullable
getImportedResourceback to summary
public final String getImportedResource()

Return the location of the imported resource.

getSourceback to summary
public final Object getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Doc from org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).

Annotations
@Override
@Nullable