Package org.glassfish.weld
Class ACLSingletonProvider
- java.lang.Object
-
- org.jboss.weld.bootstrap.api.SingletonProvider
-
- org.glassfish.weld.ACLSingletonProvider
-
public class ACLSingletonProvider extends org.jboss.weld.bootstrap.api.SingletonProvider
Singleton provider that uses Application ClassLoader to differentiate between applications. It is different fromTCCLSingletonProvider
. We can't use TCCLSingletonProvider because thread's context class loader can be different for different modules of a single application (ear). To support Application Scoped beans, Weld needs to be bootstrapped per application as opposed to per module. We rely on the fact that all these module class loaders have a common parent which is per application. We use that parent ApplicationClassLoader to identify the singleton scope.- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description ACLSingletonProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> org.glassfish.weld.ACLSingletonProvider.ACLSingleton<T>
create(Class<? extends T> expectedType)
-
-
-
Method Detail
-
create
public <T> org.glassfish.weld.ACLSingletonProvider.ACLSingleton<T> create(Class<? extends T> expectedType)
- Specified by:
create
in classorg.jboss.weld.bootstrap.api.SingletonProvider
-
-