public class BindingRepository extends AbstractConfiguringServiceLoaderRepository<Binding>
Modifier and Type | Class and Description |
---|---|
private static class |
BindingRepository.Holder |
Modifier and Type | Field and Description |
---|---|
private Map<MediaType,Activatable<Binding>> |
byMediaType
Bindings by Content-Type.
|
private Map<String,Activatable<Binding>> |
byPath
Bindings by URL path.
|
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
BindingRepository()
reads the requestListeners from the configFile and returns a
RequestOperator containing the requestListeners
|
Modifier and Type | Method and Description |
---|---|
Map<String,Binding> |
getAllBindings() |
Map<MediaType,Binding> |
getAllBindingsByMediaType() |
Binding |
getBinding(MediaType mediaType) |
Binding |
getBinding(String urlPattern) |
Map<String,Binding> |
getBindings() |
Map<MediaType,Binding> |
getBindingsByMediaType() |
static BindingRepository |
getInstance() |
boolean |
isBindingSupported(MediaType mediaType) |
boolean |
isBindingSupported(String urlPattern) |
protected void |
processConfiguredImplementations(Set<Binding> bindings) |
void |
setActive(BindingKey bk,
boolean active) |
processImplementations
checkConnectionProviderIdentifications, load, update
private static final org.slf4j.Logger LOG
private final Map<String,Activatable<Binding>> byPath
private final Map<MediaType,Activatable<Binding>> byMediaType
private BindingRepository() throws ConfigurationException
ConfigurationException
- if initialization of a RequestListener failedpublic static BindingRepository getInstance()
protected void processConfiguredImplementations(Set<Binding> bindings) throws ConfigurationException
processConfiguredImplementations
in class AbstractConfiguringServiceLoaderRepository<Binding>
ConfigurationException
public boolean isBindingSupported(String urlPattern)
public boolean isBindingSupported(MediaType mediaType)
public void setActive(BindingKey bk, boolean active)
Copyright © 2012-2015 52north.org. All Rights Reserved.