@Service public class SpringModelRegistrar extends Object
BeanFactory
is initialized, this registrar
searches
the factory's bean definitions for beans annotated with
ResourceModel
. The discovered models are published via a dedicated ResourceModelFactory
for
the provided bundle.ResourceModelFactory
,
SlingBeanFactoryPostProcessor
Constructor and Description |
---|
SpringModelRegistrar() |
Modifier and Type | Method and Description |
---|---|
void |
registerModels(org.osgi.framework.BundleContext bundleContext,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory) |
protected void |
shutdown() |
void |
unregister(org.osgi.framework.Bundle bundle) |
public void registerModels(org.osgi.framework.BundleContext bundleContext, org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
public void unregister(org.osgi.framework.Bundle bundle)
@PreDestroy protected void shutdown()
Copyright © 2024. All rights reserved.