类 ImportDefinition
- java.lang.Object
- org.springframework.beans.factory.parsing.ImportDefinition
- 所有已实现的接口:
BeanMetadataElement
public class ImportDefinition extends Object implements BeanMetadataElement
Representation of an import that has been processed during the parsing process.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
ReaderEventListener.importProcessed(ImportDefinition)
构造器概要
构造器 构造器 说明 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.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Resource[]
getActualResources()
String
getImportedResource()
Return the location of the imported resource.Object
getSource()
Return the configuration sourceObject
for this metadata element (may benull
).
构造器详细资料
ImportDefinition
public ImportDefinition(String importedResource)
Create a new ImportDefinition.- 参数:
importedResource
- the location of the imported resource
ImportDefinition
public ImportDefinition(String importedResource, Object source)
Create a new ImportDefinition.- 参数:
importedResource
- the location of the imported resourcesource
- the source object (may benull
)
ImportDefinition
public ImportDefinition(String importedResource, Resource[] actualResources, Object source)
Create a new ImportDefinition.- 参数:
importedResource
- the location of the imported resourcesource
- the source object (may benull
)
方法详细资料
getImportedResource
public final String getImportedResource()
Return the location of the imported resource.
getActualResources
public final Resource[] getActualResources()
getSource
public final Object getSource()
从接口复制的说明:BeanMetadataElement
Return the configuration sourceObject
for this metadata element (may benull
).- 指定者:
getSource
在接口中BeanMetadataElement