@Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) @Scope(value=SingletonContext.class) public @interface Singleton
@Singleton
-annotated component is sustained in singleton
(per-ClassLoader
) scope.Modifier and Type | Optional Element and Description |
---|---|
boolean |
eager
Returns whether the component is "eager" singleton or not.
|
public abstract boolean eager
true
returned, the container assembles the instance when
the component class is installed. If false
returned
(default), the container assembles the instance when the component
instance is requested.Copyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.