public class StackResourceRegistryDetectingResourceIdResolver extends Object implements ResourceIdResolver, BeanFactoryAware, 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(BeanFactory beanFactory) |
public StackResourceRegistryDetectingResourceIdResolver()
public String resolveToPhysicalResourceId(String logicalResourceId)
resolveToPhysicalResourceId
in interface ResourceIdResolver
logicalResourceId
- the logical resource id to be resolvedpublic void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.