站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

ImportDefinition (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.beans.factory.parsing
Class ImportDefinition

java.lang.Object
  extended by 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
ImportDefinition(String importedResource)
          Create a new ImportDefinition.
ImportDefinition(String importedResource, Object source)
          Create a new ImportDefinition.
 
Method Summary
 String getImportedResource()
          Return the location of the imported resource.
 Object getSource()
          Return the configuration source Object for this metadata element (may be null).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportDefinition

public ImportDefinition(String importedResource)
Create a new ImportDefinition.

Parameters:
importedResource - the location of the imported resource

ImportDefinition

public ImportDefinition(String importedResource,
                        Object source)
Create a new ImportDefinition.

Parameters:
importedResource - the location of the imported resource
source - the source object (may be null)
Method Detail

getImportedResource

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


getSource

public 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

The Spring Framework

Copyright © 2002-2007 The Spring Framework.