public final class LookupStatic<T extends Closeable> 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
only used for logging
|
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 ResourceBuilder<T extends Closeable> 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
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