SourceForge.net Logo

de.mindmatters.faces.spring.factory.context
Interface ScopedBeanDefinition

All Superinterfaces:
BeanDefinition
All Known Implementing Classes:
ManagedBeanDefinition, ScopedChildBeanDefinition, ScopedRootBeanDefinition

public interface ScopedBeanDefinition
extends BeanDefinition

Describes a bean instance which can be scoped.

Valid scopes (there may be more possibilities):

Author:
Andreas Kuhrwahl

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

isApplicationScope

public boolean isApplicationScope()
Returns:
true if bean is declared in application-scope otherwise false

isSessionScope

public boolean isSessionScope()
Returns:
true if bean is declared in session-scope otherwise false

isRequestScope

public boolean isRequestScope()
Returns:
true if bean is declared in request-scope otherwise false

isNoneScope

public boolean isNoneScope()
Returns:
true if bean is declared in none-scope otherwise false

getBeanClass

public java.lang.Class getBeanClass()
Returns the class of the wrapped bean.

Returns:
the class of the wrapped bean
Throws:
java.lang.IllegalStateException - if the bean definition does not carry a resolved bean class

hasBeanClass

public boolean hasBeanClass()
Returns whether this definition specifies a bean class.

Returns:
true this definition specifies a bean class otherwise false

getScope

public java.lang.String getScope()
Returns:
the declared scope of the bean represented by this definition

setScope

public void setScope(java.lang.String scope)
Sets the scope of the bean represented by this definition.

Parameters:
scope - the scope

SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG