| java.lang.Object com.bm.ejb3guice.inject.Scopes
Scopes | public class Scopes (Code) | | Built in scope implementations.
author: crazybob@google.com (Bob Lee) |
NO_SCOPE | final public static Scope NO_SCOPE(Code) | | No scope; the same as not applying any scope at all. Each time the
Injector obtains an instance of an object with "no scope", it injects this
instance then immediately forgets it. When the next request for the same
binding arrives it will need to obtain the instance over again.
This exists only in case a class has been annotated with a scope
annotation such as
Singleton @Singleton , and you need to override
this to "no scope" in your binding.
|
getScopeForType | static Scope getScopeForType(Class> implementation, Map<Class<? extends Annotation>, Scope> scopes, ErrorHandler errorHandler)(Code) | | Gets the scope for a type based on its annotations. Returns
null if none specified.
Parameters: implementation - type Parameters: scopes - map of scope names to scopes Parameters: errorHandler - handles errors |
|
|