public class StringToResourceConverter extends Object implements org.springframework.core.convert.converter.Converter<String,net.shibboleth.utilities.java.support.resource.Resource>, org.springframework.context.ApplicationContextAware
Resource properties using a string representing a Spring resource. The Spring resource is
retrieved by the application context. If the application context is null, then a DefaultResourceLoader is
used instead to get the resource.| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
applicationContext
Application context.
|
| Constructor and Description |
|---|
StringToResourceConverter() |
| Modifier and Type | Method and Description |
|---|---|
net.shibboleth.utilities.java.support.resource.Resource |
convert(String source) |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
@Nullable private org.springframework.context.ApplicationContext applicationContext
public net.shibboleth.utilities.java.support.resource.Resource convert(String source)
convert in interface org.springframework.core.convert.converter.Converter<String,net.shibboleth.utilities.java.support.resource.Resource>public void setApplicationContext(org.springframework.context.ApplicationContext context)
setApplicationContext in interface org.springframework.context.ApplicationContextAwareCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.