Package | Description |
---|---|
com.holonplatform.core | |
com.holonplatform.core.examples | |
com.holonplatform.core.internal |
Modifier and Type | Method and Description |
---|---|
default Optional<ContextScope> |
Context.classLoaderScope()
Shortcut method to obtain the ClassLoader-bound context scope, i.e. the default
ContextScope named
Context.CLASSLOADER_SCOPE_NAME , using the default ClassLoader . |
default Optional<ContextScope> |
Context.classLoaderScope(ClassLoader classLoader)
Shortcut method to obtain the ClassLoader-bound context scope, i.e. the default
ContextScope named
Context.CLASSLOADER_SCOPE_NAME . |
default Optional<ContextScope> |
Context.scope(String name)
|
Optional<ContextScope> |
Context.scope(String name,
ClassLoader classLoader)
|
default Optional<ContextScope> |
Context.threadScope()
Shortcut method to obtain the thread-bound context scope, i.e. the default
ContextScope named
Context.THREAD_SCOPE_NAME , using the default ClassLoader . |
default Optional<ContextScope> |
Context.threadScope(ClassLoader classLoader)
Shortcut method to obtain the thread-bound context scope, i.e. the default
ContextScope named
Context.THREAD_SCOPE_NAME . |
Modifier and Type | Class and Description |
---|---|
class |
ExampleContext.MyContextScope |
Modifier and Type | Class and Description |
---|---|
class |
ClassLoaderScope
A
ContextScope for ClassLoader -scoped singleton context resources. |
class |
ThreadScope
A
ContextScope to handle Thread-bound context resources. |
Modifier and Type | Method and Description |
---|---|
static ContextScope |
ContextManager.getScope(String name)
Gets the
ContextScope with given name bound to default ClassLoader |
static ContextScope |
ContextManager.getScope(String name,
ClassLoader classLoader)
|
Modifier and Type | Method and Description |
---|---|
static Iterable<ContextScope> |
ContextManager.getScopes()
Gets all available
ContextScope s for default ClassLoader |
static Iterable<ContextScope> |
ContextManager.getScopes(ClassLoader classLoader)
Gets all available
ContextScope s for given classLoader |
Optional<ContextScope> |
DefaultContext.scope(String name,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
static void |
ContextManager.registerScope(ClassLoader classLoader,
ContextScope scope)
Register a
ContextScope bound to given classLoader . |
Copyright © 2019 The Holon Platform. All rights reserved.