@Service public class ModelRegistrar extends Object
BeanFactory is initialized, this registrar
searches the factory's bean definitions for beans annotated with
ResourceModel. The corresponding mappings {type -> model} are then
added to the ModelRegistry, providing models for resources. This
registrar also signals changes of the ModelRegistry to the
ResourceToModelAdapter.ResourceToModelAdapterUpdater,
SlingBeanFactoryPostProcessor| Constructor and Description |
|---|
ModelRegistrar() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerModels(org.osgi.framework.BundleContext bundleContext,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
unregister(org.osgi.framework.Bundle bundle) |
Copyright © 2014–2015. All rights reserved.