public class BusApplicationContextResourceResolver extends Object implements ResourceResolver
| Constructor and Description |
|---|
BusApplicationContextResourceResolver() |
BusApplicationContextResourceResolver(ApplicationContext c) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getAsStream(String name)
Resolve a resource given its name and return an InputStream to it.
|
<T> T |
resolve(String resourceName,
Class<T> resourceType)
Resolve a resource given its name and type.
|
void |
setApplicationContext(ApplicationContext applicationContext) |
public BusApplicationContextResourceResolver()
public BusApplicationContextResourceResolver(ApplicationContext c)
public InputStream getAsStream(String name)
ResourceResolvergetAsStream in interface ResourceResolvername - name of the resource to resolve.public <T> T resolve(String resourceName, Class<T> resourceType)
ResourceResolverresolve in interface ResourceResolverresourceName - name of the resource to resolve.resourceType - type of the resource to resolve.null if the
resource cannot be resolved.public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
BeansExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.