public class OsgiBundleScope extends Object implements org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.DisposableBean
Scope
implementation.
Will allow per--calling-bundle object instance, thus this scope becomes
useful when enabled on localBeans exposed as OSGi services.| Modifier and Type | Class and Description |
|---|---|
static class |
OsgiBundleScope.BundleScopeServiceFactory
Decorating
ServiceFactory used for supporting
'bundle' scoped localBeans. |
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Object> |
EXTERNAL_BUNDLE
ThreadLocal used for passing objects around
OsgiBundleScope and
OsgiBundleScope.BundleScopeServiceFactory (there is only one scope instance but
multiple BSSFs). |
static String |
SCOPE_NAME |
| Constructor and Description |
|---|
OsgiBundleScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Object |
get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory) |
String |
getConversationId() |
void |
registerDestructionCallback(String name,
Runnable callback) |
Object |
remove(String name) |
Object |
resolveContextualObject(String key) |
public static final String SCOPE_NAME
public static final ThreadLocal<Object> EXTERNAL_BUNDLE
OsgiBundleScope and
OsgiBundleScope.BundleScopeServiceFactory (there is only one scope instance but
multiple BSSFs).public Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get in interface org.springframework.beans.factory.config.Scopepublic String getConversationId()
getConversationId in interface org.springframework.beans.factory.config.Scopepublic void registerDestructionCallback(String name, Runnable callback)
registerDestructionCallback in interface org.springframework.beans.factory.config.Scopepublic Object remove(String name)
remove in interface org.springframework.beans.factory.config.Scopepublic Object resolveContextualObject(String key)
resolveContextualObject in interface org.springframework.beans.factory.config.Scopepublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanCopyright © 2006–2013. All rights reserved.