-
public class BeanFactory
-
-
Field Summary
Fields Modifier and Type Field Description private final ObjectCacheobjectCacheprivate final Stringdomainprivate final ImmutableConfigconf
-
Constructor Summary
Constructors Constructor Description BeanFactory(ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description final ObjectCachegetObjectCache()final StringgetDomain()final ImmutableConfiggetConf()final StringcacheId(KClass<?> clazz, String modifiers)final StringcacheId(KClass<?> clazz)final UnitputBean(String cacheId, Object obj)final UnitputBean(Object obj)final <T extends Any> TgetJvmBean(String cacheId, Class<T> clazz)final <T extends Any> TgetBean(String cacheId)final <T extends Any> TgetBean()final <T extends Any> TcomputeIfAbsent(String cacheId, Function0<T> generator)final <T extends Any> TcomputeIfAbsent(Function0<T> generator)-
-
Constructor Detail
-
BeanFactory
BeanFactory(ImmutableConfig conf)
-
-
Method Detail
-
getObjectCache
final ObjectCache getObjectCache()
-
getConf
final ImmutableConfig getConf()
-
computeIfAbsent
final <T extends Any> T computeIfAbsent(String cacheId, Function0<T> generator)
-
computeIfAbsent
final <T extends Any> T computeIfAbsent(Function0<T> generator)
-
-
-
-