public class LookupStatic<T extends java.lang.AutoCloseable> extends EPJLifeCycle implements Cache<T>
Modifier and Type | Field and Description |
---|---|
private ResourceBuilder<T> |
builder |
private java.util.Map<java.lang.String,T> |
cache |
private static org.slf4j.Logger |
log |
private java.lang.String |
name |
Constructor and Description |
---|
LookupStatic(ResourceBuilder<T> builder) |
Modifier and Type | Method and Description |
---|---|
private T |
bind(java.lang.String key) |
protected void |
doStop() |
T |
get(java.lang.String key) |
void |
lifeCycleStopped(org.eclipse.jetty.util.component.LifeCycle event) |
void |
setName(java.lang.String name) |
lifeCycleFailure, lifeCycleStarted, lifeCycleStarting, lifeCycleStopping
addLifeCycleListener, doStart, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private static final org.slf4j.Logger log
private final java.util.Map<java.lang.String,T extends java.lang.AutoCloseable> cache
private final ResourceBuilder<T extends java.lang.AutoCloseable> builder
private java.lang.String name
@Inject public LookupStatic(ResourceBuilder<T> builder)
public void lifeCycleStopped(org.eclipse.jetty.util.component.LifeCycle event)
lifeCycleStopped
in interface org.eclipse.jetty.util.component.LifeCycle.Listener
lifeCycleStopped
in class EPJLifeCycle
public T get(java.lang.String key)
private T bind(java.lang.String key)
protected void doStop() throws java.lang.Exception
doStop
in class org.eclipse.jetty.util.component.AbstractLifeCycle
java.lang.Exception