public class AbstractResourceLocatorPostProcessor extends java.lang.Object implements BeanDefinitionRegistryPostProcessor, PriorityOrdered
Registers abstractGrailsResourceLocator, the abstract parent definition that
resource-locator beans inherit their search locations from.
The definition carries a single property and no bean class, so it exists purely to be
inherited with bean.parent = 'abstractGrailsResourceLocator' — third-party plugins
do so, asset-pipeline's assetResourceLocator among them, which makes it part of the
core plugin's public surface.
A classless, abstract definition has no equivalent in BeanRegistry.Spec, whose
registerBean always takes a class, nor on a @Bean method. Contributing it
through a BeanDefinitionRegistryPostProcessor reaches the underlying registry, where
it can be expressed directly, so the core plugin needs no bean builder DSL for it.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
BEAN_NAME |
| Constructor and description |
|---|
AbstractResourceLocatorPostProcessor(java.util.List<java.lang.String> searchLocations) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public int |
getOrder()Ordered first, because a child definition naming this one as its parent cannot be merged until it exists, and merging happens as soon as anything resolves beans by type. |
|
public void |
postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) |
|
public void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Ordered first, because a child definition naming this one as its parent cannot be merged until it exists, and merging happens as soon as anything resolves beans by type.