public final class BeanStore extends Object
Key
. Such storages are used to emulate the
the scopes of apps and sub-apps.SessionStore
,
UiScopes
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
contains(Object instance) |
void |
forEach(BiConsumer<? super com.google.inject.Key,? super Object> handler) |
<T> T |
get(Class<? extends T> key) |
<T> T |
get(com.google.inject.Key<? extends T> key) |
<T> T |
getClosestInstance(Class<? extends T> type) |
<T> Optional<T> |
getInstance(Class<? extends T> type) |
<T> boolean |
hasInstanceOf(Class<T> type) |
void |
put(Class<?> key,
Object bean) |
void |
put(com.google.inject.Key<?> key,
Object bean) |
public void put(com.google.inject.Key<?> key, Object bean)
public <T> T get(Class<? extends T> key)
public <T> T get(com.google.inject.Key<? extends T> key)
public <T> T getClosestInstance(Class<? extends T> type)
public <T> boolean hasInstanceOf(Class<T> type)
public void clear()
public void forEach(BiConsumer<? super com.google.inject.Key,? super Object> handler)
public boolean contains(Object instance)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.