|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.bootstrap.api.SingletonProvider
org.glassfish.weld.ACLSingletonProvider
public class ACLSingletonProvider
Singleton provider that uses Application ClassLoader to differentiate
between applications. It is different from
TCCLSingletonProvider.
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.
| Constructor Summary | |
|---|---|
ACLSingletonProvider()
|
|
| Method Summary | ||
|---|---|---|
|
create(java.lang.Class<? extends T> expectedType)
|
|
| Methods inherited from class org.jboss.weld.bootstrap.api.SingletonProvider |
|---|
initialize, instance, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ACLSingletonProvider()
| Method Detail |
|---|
public <T> org.glassfish.weld.ACLSingletonProvider.ACLSingleton<T> create(java.lang.Class<? extends T> expectedType)
create in class org.jboss.weld.bootstrap.api.SingletonProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||