|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Describes a bean instance which can be scoped.
Valid scopes (there may be more possibilities):
| Method Summary | |
java.lang.Class |
getBeanClass()
Returns the class of the wrapped bean. |
java.lang.String |
getScope()
|
boolean |
hasBeanClass()
Returns whether this definition specifies a bean class. |
boolean |
isApplicationScope()
|
boolean |
isNoneScope()
|
boolean |
isRequestScope()
|
boolean |
isSessionScope()
|
void |
setScope(java.lang.String scope)
Sets the scope of the bean represented by this definition. |
| Methods inherited from interface org.springframework.beans.factory.config.BeanDefinition |
getConstructorArgumentValues, getPropertyValues, getResourceDescription, isAbstract, isLazyInit, isSingleton |
| Method Detail |
public boolean isApplicationScope()
true if bean is declared in application-scope
otherwise falsepublic boolean isSessionScope()
true if bean is declared in session-scope
otherwise falsepublic boolean isRequestScope()
true if bean is declared in request-scope
otherwise falsepublic boolean isNoneScope()
true if bean is declared in none-scope otherwise
falsepublic java.lang.Class getBeanClass()
java.lang.IllegalStateException - if the bean definition does not carry a resolved bean classpublic boolean hasBeanClass()
true this definition specifies a bean class
otherwise falsepublic java.lang.String getScope()
public void setScope(java.lang.String scope)
scope - the scope
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||