public class BindingRepository extends AbstractComponentRepository<BindingKey,Binding,BindingFactory> implements ActivationManager<BindingKey>, ActivationSource<BindingKey>, Constructable
| Constructor and Description |
|---|
BindingRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(BindingKey key) |
void |
deactivate(BindingKey key) |
void |
deregisterListener(ActivationListener<BindingKey> listener) |
Map<MediaType,Binding> |
getAllBindingsByMediaType() |
Binding |
getBinding(BindingKey key) |
Binding |
getBinding(MediaType mediaType) |
Binding |
getBinding(String urlPattern) |
Map<BindingKey,Binding> |
getBindings() |
Map<MediaType,Binding> |
getBindingsByMediaType() |
Set<BindingKey> |
getKeys() |
void |
init() |
boolean |
isActive(BindingKey key) |
boolean |
isActive(MediaType mediaType) |
boolean |
isActive(String urlPattern) |
boolean |
isBindingSupported(BindingKey key) |
boolean |
isBindingSupported(MediaType mediaType) |
boolean |
isBindingSupported(String urlPattern) |
void |
registerListener(ActivationListener<BindingKey> listener) |
void |
setActive(BindingKey bk,
boolean active) |
void |
setComponentFactories(Optional<Collection<BindingFactory>> componentFactories) |
void |
setComponents(Optional<Collection<Binding>> components) |
getProviders, getProviders, getUniqueProviders, getUniqueProvidersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate@Inject public void setComponentFactories(Optional<Collection<BindingFactory>> componentFactories)
@Inject public void setComponents(Optional<Collection<Binding>> components)
public void registerListener(ActivationListener<BindingKey> listener)
registerListener in interface ActivationListenable<BindingKey>public void deregisterListener(ActivationListener<BindingKey> listener)
deregisterListener in interface ActivationListenable<BindingKey>public boolean isActive(BindingKey key)
isActive in interface ActivationProvider<BindingKey>public boolean isActive(String urlPattern)
public boolean isActive(MediaType mediaType)
public void activate(BindingKey key)
activate in interface ActivationSink<BindingKey>public void deactivate(BindingKey key)
deactivate in interface ActivationSink<BindingKey>public Set<BindingKey> getKeys()
getKeys in interface ActivationSource<BindingKey>public void setActive(BindingKey bk, boolean active)
setActive in interface ActivationSink<BindingKey>public void init()
init in interface Constructablepublic Binding getBinding(BindingKey key)
public boolean isBindingSupported(String urlPattern)
public boolean isBindingSupported(MediaType mediaType)
public boolean isBindingSupported(BindingKey key)
public Map<BindingKey,Binding> getBindings()
Copyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.