@Service(value=SuperimposingManager.class) public class SuperimposingManagerImpl extends Object implements SuperimposingManager, javax.jcr.observation.EventListener
SuperimposingResourceProviderImpl.
Provides read-only access to all registered providers.| Constructor and Description |
|---|
SuperimposingManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext ctx) |
protected void |
deactivate(org.osgi.service.component.ComponentContext ctx) |
Iterator<SuperimposingResourceProvider> |
getRegisteredProviders() |
boolean |
isEnabled() |
void |
onEvent(javax.jcr.observation.EventIterator events)
Handle resource events to add or remove superimposing registrations
|
@Activate
protected void activate(org.osgi.service.component.ComponentContext ctx)
throws org.apache.sling.api.resource.LoginException,
javax.jcr.RepositoryException
org.apache.sling.api.resource.LoginExceptionjavax.jcr.RepositoryException@Deactivate
protected void deactivate(org.osgi.service.component.ComponentContext ctx)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void onEvent(javax.jcr.observation.EventIterator events)
onEvent in interface javax.jcr.observation.EventListenerpublic boolean isEnabled()
isEnabled in interface SuperimposingManagerpublic Iterator<SuperimposingResourceProvider> getRegisteredProviders()
getRegisteredProviders in interface SuperimposingManagerConcurrentHashMap and is safe to access
even if superimposing resource providers are registered or unregistered at the same time.Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.