|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Scope | |
|---|---|
| jodd.petite | Petite container. |
| jodd.petite.proxetta | Proxetta aware Petite container. |
| jodd.petite.scope | Petite bean scopes. |
| Uses of Scope in jodd.petite |
|---|
| Fields in jodd.petite declared as Scope | |
|---|---|
protected Scope |
BeanDefinition.scope
|
| Fields in jodd.petite with type parameters of type Scope | |
|---|---|
protected Class<? extends Scope> |
PetiteConfig.defaultScope
|
protected Map<Class<? extends Scope>,Scope> |
PetiteBeans.scopes
Map of all bean scopes. |
protected Map<Class<? extends Scope>,Scope> |
PetiteBeans.scopes
Map of all bean scopes. |
| Methods in jodd.petite that return Scope | |
|---|---|
protected Scope |
PetiteBeans.resolveScope(Class<? extends Scope> scopeType)
Resolves scope from scope type. |
| Methods in jodd.petite that return types with arguments of type Scope | |
|---|---|
Class<? extends Scope> |
PetiteConfig.getDefaultScope()
Returns default scope type. |
static Class<? extends Scope> |
PetiteUtil.resolveBeanScopeType(Class type)
Resolves bean's scope type from the annotation. |
| Methods in jodd.petite with parameters of type Scope | |
|---|---|
void |
PetiteBeans.registerScope(Class<? extends Scope> scopeType,
Scope scope)
Registers new scope. |
| Method parameters in jodd.petite with type arguments of type Scope | |
|---|---|
void |
PetiteRegistry.defineBean(Class type,
Class<? extends Scope> scopeType)
|
void |
PetiteRegistry.defineBean(Class type,
Class<? extends Scope> scopeType,
WiringMode wiringMode)
|
void |
PetiteRegistry.defineBean(String name,
Class type,
Class<? extends Scope> scopeType)
|
void |
PetiteRegistry.defineBean(String name,
Class type,
Class<? extends Scope> scopeType,
WiringMode wiringMode)
|
protected void |
PetiteBeans.definePetiteBean(String name,
Class type,
Class<? extends Scope> scopeType,
WiringMode wiringMode)
Single point of bean definition. |
void |
PetiteRegistry.registerBean(Class type,
Class<? extends Scope> scopeType)
Registers Petite bean class within specified scope. |
void |
PetiteRegistry.registerBean(Class type,
Class<? extends Scope> scopeType,
WiringMode wiringMode)
Registers Petite bean class within specified scope and with specified auto-wire behavior. |
void |
PetiteRegistry.registerBean(String name,
Class type,
Class<? extends Scope> scopeType)
Registers Petite bean class with specified name within specified scope. |
void |
PetiteRegistry.registerBean(String name,
Class type,
Class<? extends Scope> scopeType,
WiringMode wiringMode)
Registers Petite bean class with specified name within specified scope and with specified auto-wire behavior. |
protected BeanDefinition |
PetiteBeans.registerPetiteBean(String name,
Class type,
Class<? extends Scope> scopeType,
WiringMode wiringMode)
Single point of bean registration. |
void |
PetiteBeans.registerScope(Class<? extends Scope> scopeType,
Scope scope)
Registers new scope. |
protected Scope |
PetiteBeans.resolveScope(Class<? extends Scope> scopeType)
Resolves scope from scope type. |
void |
PetiteConfig.setDefaultScope(Class<? extends Scope> defaultScope)
Sets default scope type. |
| Constructors in jodd.petite with parameters of type Scope | |
|---|---|
BeanDefinition(String name,
Class type,
Scope scope,
WiringMode wiringMode)
|
|
| Uses of Scope in jodd.petite.proxetta |
|---|
| Method parameters in jodd.petite.proxetta with type arguments of type Scope | |
|---|---|
protected BeanDefinition |
ProxettaAwarePetiteContainer.registerPetiteBean(String name,
Class type,
Class<? extends Scope> scopeType,
WiringMode wiringMode)
Applies proxetta on bean class before bean registration. |
| Uses of Scope in jodd.petite.scope |
|---|
| Classes in jodd.petite.scope that implement Scope | |
|---|---|
class |
DefaultScope
Default Petite container scope. |
class |
ProtoScope
Prototype scope doesn't pool any beans, so each time bean is requested, a new instance will be created. |
class |
SessionScope
Session scope stores unique object instances per single http session. |
class |
SingletonScope
Singleton scope pools all bean instances so they will be created only once in the container context. |
class |
ThreadLocalScope
Thread local Petite bean scope. |
| Methods in jodd.petite.scope with parameters of type Scope | |
|---|---|
boolean |
ThreadLocalScope.accept(Scope referenceScope)
Defines allowed referenced scopes that can be injected into the thread-local scoped bean. |
boolean |
SingletonScope.accept(Scope referenceScope)
Allows only singleton scoped beans to be injected into the target singleton bean. |
boolean |
SessionScope.accept(Scope referenceScope)
|
boolean |
Scope.accept(Scope referenceScope)
Returns true if a bean of referenced scope can be
injected into target bean of this scope. |
boolean |
ProtoScope.accept(Scope referenceScope)
Allow all scopes to be injected into prototype scoped beans. |
boolean |
DefaultScope.accept(Scope referenceScope)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||