@Singleton public class AppDescriptorRegistry extends Object
AppDescriptor
s. Fires AppRegistryEvent
when the registry changes.AppDescriptor
,
AppDescriptorProvider
,
AppRegistryEvent
Constructor and Description |
---|
AppDescriptorRegistry(info.magnolia.event.EventBus systemEventBus) |
Modifier and Type | Method and Description |
---|---|
AppDescriptor |
getAppDescriptor(String name) |
Collection<AppDescriptor> |
getAppDescriptors() |
boolean |
isAppDescriptorRegistered(String name) |
void |
register(AppDescriptorProvider provider) |
void |
unregister(String name) |
Set<String> |
unregisterAndRegister(Collection<String> namesToUnregister,
Collection<AppDescriptorProvider> providersToRegister) |
@Inject public AppDescriptorRegistry(@Named(value="system") info.magnolia.event.EventBus systemEventBus)
public AppDescriptor getAppDescriptor(String name) throws info.magnolia.registry.RegistrationException
info.magnolia.registry.RegistrationException
public boolean isAppDescriptorRegistered(String name)
public Collection<AppDescriptor> getAppDescriptors()
public void register(AppDescriptorProvider provider) throws info.magnolia.registry.RegistrationException
info.magnolia.registry.RegistrationException
public void unregister(String name) throws info.magnolia.registry.RegistrationException
info.magnolia.registry.RegistrationException
public Set<String> unregisterAndRegister(Collection<String> namesToUnregister, Collection<AppDescriptorProvider> providersToRegister) throws info.magnolia.registry.RegistrationException
info.magnolia.registry.RegistrationException
Copyright © 2015 Magnolia International Ltd.. All rights reserved.