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) |
java.util.Map<MediaType,Binding> |
getAllBindingsByMediaType() |
java.util.Map<java.lang.String,Binding> |
getAllBindingsByPath()
Deprecated.
|
Binding |
getBinding(BindingKey key) |
Binding |
getBinding(MediaType mediaType) |
Binding |
getBinding(java.lang.String urlPattern) |
java.util.Map<BindingKey,Binding> |
getBindings() |
java.util.Map<MediaType,Binding> |
getBindingsByMediaType() |
java.util.Map<java.lang.String,Binding> |
getBindingsByPath()
Deprecated.
|
static BindingRepository |
getInstance()
Deprecated.
|
java.util.Set<BindingKey> |
getKeys() |
void |
init() |
boolean |
isActive(BindingKey key) |
boolean |
isActive(MediaType mediaType) |
boolean |
isActive(java.lang.String urlPattern) |
boolean |
isBindingSupported(BindingKey key) |
boolean |
isBindingSupported(MediaType mediaType) |
boolean |
isBindingSupported(java.lang.String urlPattern) |
void |
registerListener(ActivationListener<BindingKey> listener) |
void |
setActive(BindingKey bk,
boolean active) |
void |
setComponentFactories(java.util.Optional<java.util.Collection<BindingFactory>> componentFactories) |
void |
setComponents(java.util.Optional<java.util.Collection<Binding>> components) |
getProviders, getProviders, getUniqueProviders, getUniqueProvidersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate@Inject public void setComponentFactories(java.util.Optional<java.util.Collection<BindingFactory>> componentFactories)
@Inject public void setComponents(java.util.Optional<java.util.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(java.lang.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 java.util.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(java.lang.String urlPattern)
public Binding getBinding(BindingKey key)
public boolean isBindingSupported(java.lang.String urlPattern)
public boolean isBindingSupported(MediaType mediaType)
public boolean isBindingSupported(BindingKey key)
public java.util.Map<BindingKey,Binding> getBindings()
@Deprecated public java.util.Map<java.lang.String,Binding> getBindingsByPath()
@Deprecated public java.util.Map<java.lang.String,Binding> getAllBindingsByPath()
@Deprecated public static BindingRepository getInstance()
Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.