org.springframework.context.support
Class ContextResourceEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--org.springframework.core.io.ResourceEditor
              |
              +--org.springframework.context.support.ContextResourceEditor

public class ContextResourceEditor
extends ResourceEditor

ApplicationContext-aware PropertyEditor for Resource descriptors.

Delegates to the ApplicationContext's getResource method for resolving resource locations to Resource descriptors. Resource loading behavior is specific to the context implementation.

Author:
Juergen Hoeller
Since: 28.12.2003
See Also: org.springframework.context.ApplicationContext.getResource(java.lang.String)

Fields inherited from class org.springframework.core.io.ResourceEditor
CLASSPATH_URL_PREFIX, PLACEHOLDER_PREFIX, PLACEHOLDER_SUFFIX

Constructor Summary
ContextResourceEditor(ApplicationContext applicationContext)
          Create a new ContextResourceEditor for the given context.

Method Summary
 voidsetAsText(String text)
           

Methods inherited from class java.beans.PropertyEditorSupport
firePropertyChange, isPaintable, supportsCustomEditor, getCustomEditor, addPropertyChangeListener, removePropertyChangeListener, getValue, setValue, getAsText, getJavaInitializationString, getTags, paintValue

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals, toString

Constructor Detail

ContextResourceEditor

public ContextResourceEditor(ApplicationContext applicationContext)
Create a new ContextResourceEditor for the given context.
Parameters:
applicationContext - context to resolve resources with
Method Detail

setAsText

public void setAsText(String text)
throws java.lang.IllegalArgumentException

Association Links

to Class org.springframework.context.ApplicationContext