public class StackResourceRegistryDetectingResourceIdResolver extends Object implements ResourceIdResolver, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
StackResourceRegistry
instances. This implementation automatically detects the single, optional stack resource
registry bean and uses it for resolving logical resource ids to physical ones. If no stack resource registry bean
can be found in the bean factory, a pass-through stack resource registry is used instead, which always returns the
provided logical resource id as the physical one.Constructor and Description |
---|
StackResourceRegistryDetectingResourceIdResolver() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
resolveToPhysicalResourceId(String logicalResourceId)
Resolves the provided logical resource id to the corresponding physical resource id.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public StackResourceRegistryDetectingResourceIdResolver()
public String resolveToPhysicalResourceId(String logicalResourceId)
resolveToPhysicalResourceId
in interface ResourceIdResolver
logicalResourceId
- the logical resource id to be resolvedpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.