public abstract class ResourceServiceManager extends com.adobe.granite.jmx.annotation.AnnotatedStandardMBean implements ResourceServiceManagerMBean, org.osgi.service.event.EventHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_ID_KEY |
static String |
SERVICE_OWNER_KEY |
| Modifier | Constructor and Description |
|---|---|
protected |
ResourceServiceManager(Class<?> mbeanInterface) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
void |
deactivate(org.osgi.service.component.ComponentContext context) |
org.osgi.framework.BundleContext |
getBundleContext() |
List<String> |
getRegisteredConfigurations() |
Map<String,org.osgi.framework.ServiceRegistration> |
getRegisteredServices() |
protected abstract org.apache.sling.api.resource.ResourceResolver |
getResourceResolver()
Get a resource resolver to access the Sling Repository.
|
abstract String |
getRootPath()
Get the root path for the instance of the ResourceServiceManager, the
configuration should be cq:Page children of the resource at this path.
|
void |
handleEvent(org.osgi.service.event.Event event) |
protected abstract boolean |
isServiceUpdated(org.apache.sling.api.resource.Resource config,
org.osgi.framework.ServiceReference reference)
Checks whether or not the specified ServiceReference is up to date with
the configuration resource.
|
void |
refreshCache() |
protected abstract org.osgi.framework.ServiceRegistration |
registerServiceObject(org.apache.sling.api.resource.Resource config,
Hashtable<String,Object> props)
Register the service with the OSGi Container based on the configuration.
|
getAnnotation, getConstructor, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getMethod, getParamAnnotation, getParamAnnotation, getParameterName, getParameterName, getReadMethod, getWriteMethodcacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic static final String SERVICE_OWNER_KEY
public static final String CONFIGURATION_ID_KEY
protected ResourceServiceManager(Class<?> mbeanInterface) throws NotCompliantMBeanException
NotCompliantMBeanException@Activate
public void activate(org.osgi.service.component.ComponentContext context)
throws org.apache.sling.api.resource.LoginException
org.apache.sling.api.resource.LoginException@Deactivate
public void deactivate(org.osgi.service.component.ComponentContext context)
throws org.apache.sling.api.resource.LoginException
org.apache.sling.api.resource.LoginExceptionpublic org.osgi.framework.BundleContext getBundleContext()
public List<String> getRegisteredConfigurations()
getRegisteredConfigurations in interface ResourceServiceManagerMBeanpublic Map<String,org.osgi.framework.ServiceRegistration> getRegisteredServices()
protected abstract org.apache.sling.api.resource.ResourceResolver getResourceResolver()
public abstract String getRootPath()
public void handleEvent(org.osgi.service.event.Event event)
handleEvent in interface org.osgi.service.event.EventHandlerprotected abstract boolean isServiceUpdated(org.apache.sling.api.resource.Resource config,
org.osgi.framework.ServiceReference reference)
config - the configuration resourcereference - the service reference to checkpublic void refreshCache()
refreshCache in interface ResourceServiceManagerMBeanprotected abstract org.osgi.framework.ServiceRegistration registerServiceObject(org.apache.sling.api.resource.Resource config,
Hashtable<String,Object> props)
config - the configuration resourceprops - the default propertiesCopyright © 2013–2020 Adobe. All rights reserved.