@Singleton public class EndpointDefinitionRegistry extends info.magnolia.config.registry.AbstractRegistry<EndpointDefinition>
Modifier and Type | Class and Description |
---|---|
static class |
EndpointDefinitionRegistry.RelativePathMetadataBuilder
This DefinitionMetadataBuilder generates referenceId from the relative-location only.
|
Constructor and Description |
---|
EndpointDefinitionRegistry(info.magnolia.event.EventBus systemEventBus)
Deprecated.
since 2.0 use
EndpointDefinitionRegistry(ModuleRegistry, EventBus) instead. |
EndpointDefinitionRegistry(info.magnolia.module.ModuleRegistry moduleRegistry,
info.magnolia.event.EventBus systemEventBus) |
Modifier and Type | Method and Description |
---|---|
void |
addDecorator(info.magnolia.config.registry.decoration.DefinitionDecorator<EndpointDefinition> decorator) |
Collection<EndpointDefinition> |
getAllEndpointDefinitions()
Deprecated.
since 2.0 use
AbstractRegistry.getAllDefinitions() instead. |
EndpointDefinition |
getEndpointDefinition(String name)
Deprecated.
since 2.0 use
AbstractRegistry.getProvider(String) instead. |
boolean |
isEndpointDefinitionRegistered(String name)
Deprecated.
since 2.0 use standard registry APIs instead (
AbstractRegistry.getProvider(String) and DefinitionProvider.isValid() ). |
info.magnolia.config.registry.DefinitionMetadataBuilder |
newMetadataBuilder() |
protected info.magnolia.config.registry.DefinitionProvider<EndpointDefinition> |
onRegister(info.magnolia.config.registry.DefinitionProvider<EndpointDefinition> provider) |
void |
register(info.magnolia.config.registry.DefinitionProvider<EndpointDefinition> provider) |
void |
removeDecorator(info.magnolia.config.registry.decoration.DefinitionDecorator<EndpointDefinition> decorator) |
info.magnolia.config.registry.DefinitionType |
type() |
Set<info.magnolia.config.registry.DefinitionMetadata> |
unregisterAndRegister(Collection<info.magnolia.config.registry.DefinitionMetadata> toRemoveIds,
Collection<info.magnolia.config.registry.DefinitionProvider<EndpointDefinition>> definitionProviders) |
Set<String> |
unregisterAndRegister(Set<String> registeredNames,
List<EndpointDefinitionProvider> providers)
Deprecated.
since 2.0 use
unregisterAndRegister(Collection, Collection) instead. |
@Inject public EndpointDefinitionRegistry(info.magnolia.module.ModuleRegistry moduleRegistry, @Named(value="system") info.magnolia.event.EventBus systemEventBus)
@Deprecated public EndpointDefinitionRegistry(@Named(value="system") info.magnolia.event.EventBus systemEventBus)
EndpointDefinitionRegistry(ModuleRegistry, EventBus)
instead.public info.magnolia.config.registry.DefinitionType type()
public info.magnolia.config.registry.DefinitionMetadataBuilder newMetadataBuilder()
public void register(info.magnolia.config.registry.DefinitionProvider<EndpointDefinition> provider)
register
in interface info.magnolia.config.registry.Registry<EndpointDefinition>
register
in class info.magnolia.config.registry.AbstractRegistry<EndpointDefinition>
protected info.magnolia.config.registry.DefinitionProvider<EndpointDefinition> onRegister(info.magnolia.config.registry.DefinitionProvider<EndpointDefinition> provider)
onRegister
in class info.magnolia.config.registry.AbstractRegistry<EndpointDefinition>
public Set<info.magnolia.config.registry.DefinitionMetadata> unregisterAndRegister(Collection<info.magnolia.config.registry.DefinitionMetadata> toRemoveIds, Collection<info.magnolia.config.registry.DefinitionProvider<EndpointDefinition>> definitionProviders)
unregisterAndRegister
in interface info.magnolia.config.registry.Registry<EndpointDefinition>
unregisterAndRegister
in class info.magnolia.config.registry.AbstractRegistry<EndpointDefinition>
public void addDecorator(info.magnolia.config.registry.decoration.DefinitionDecorator<EndpointDefinition> decorator)
addDecorator
in interface info.magnolia.config.registry.Registry<EndpointDefinition>
addDecorator
in class info.magnolia.config.registry.AbstractRegistry<EndpointDefinition>
public void removeDecorator(info.magnolia.config.registry.decoration.DefinitionDecorator<EndpointDefinition> decorator)
removeDecorator
in interface info.magnolia.config.registry.Registry<EndpointDefinition>
removeDecorator
in class info.magnolia.config.registry.AbstractRegistry<EndpointDefinition>
@Deprecated public EndpointDefinition getEndpointDefinition(String name) throws info.magnolia.registry.RegistrationException
AbstractRegistry.getProvider(String)
instead.info.magnolia.registry.RegistrationException
@Deprecated public Set<String> unregisterAndRegister(Set<String> registeredNames, List<EndpointDefinitionProvider> providers)
unregisterAndRegister(Collection, Collection)
instead.@Deprecated public boolean isEndpointDefinitionRegistered(String name)
AbstractRegistry.getProvider(String)
and DefinitionProvider.isValid()
).@Deprecated public Collection<EndpointDefinition> getAllEndpointDefinitions()
AbstractRegistry.getAllDefinitions()
instead.Copyright © 2019 Magnolia International Ltd.. All rights reserved.