SourceForge.net Logo

de.mindmatters.faces.spring.factory.context
Class ScopedChildBeanDefinition

java.lang.Object
  extended byorg.springframework.beans.factory.support.AbstractBeanDefinition
      extended byorg.springframework.beans.factory.support.ChildBeanDefinition
          extended byde.mindmatters.faces.spring.factory.context.ScopedChildBeanDefinition
All Implemented Interfaces:
BeanDefinition, ScopedBeanDefinition

public final class ScopedChildBeanDefinition
extends ChildBeanDefinition
implements ScopedBeanDefinition

Scoped bean definition for beans that inherit settings from their parent.

Author:
Andreas Kuhrwahl

Field Summary
 
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanDefinition
AUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR, AUTOWIRE_NO, DEPENDENCY_CHECK_ALL, DEPENDENCY_CHECK_NONE, DEPENDENCY_CHECK_OBJECTS, DEPENDENCY_CHECK_SIMPLE
 
Constructor Summary
ScopedChildBeanDefinition(ChildBeanDefinition original, java.lang.String scope)
          Creates and initializes a ScopedChildBeanDefinition with the given ChildBeanDefinition original.
 
Method Summary
 java.lang.String getScope()
          
 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 class org.springframework.beans.factory.support.ChildBeanDefinition
getParentName, toString, validate
 
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanDefinition
getAutowireMode, getBeanClass, getBeanClassName, getConstructorArgumentValues, getDependencyCheck, getDependsOn, getDestroyMethodName, getFactoryBeanName, getFactoryMethodName, getInitMethodName, getMethodOverrides, getPropertyValues, getResolvedAutowireMode, getResourceDescription, hasBeanClass, hasConstructorArgumentValues, isAbstract, isLazyInit, isSingleton, overrideFrom, setAbstract, setAutowireMode, setBeanClass, setBeanClassName, setConstructorArgumentValues, setDependencyCheck, setDependsOn, setDestroyMethodName, setFactoryBeanName, setFactoryMethodName, setInitMethodName, setLazyInit, setMethodOverrides, setPropertyValues, setResourceDescription, setSingleton, validateMethodOverride
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.mindmatters.faces.spring.factory.context.ScopedBeanDefinition
getBeanClass, hasBeanClass
 
Methods inherited from interface org.springframework.beans.factory.config.BeanDefinition
getConstructorArgumentValues, getPropertyValues, getResourceDescription, isAbstract, isLazyInit, isSingleton
 

Constructor Detail

ScopedChildBeanDefinition

public ScopedChildBeanDefinition(ChildBeanDefinition original,
                                 java.lang.String scope)
Creates and initializes a ScopedChildBeanDefinition with the given ChildBeanDefinition original.

Parameters:
original - the original
scope - the declared scope
Method Detail

isApplicationScope

public boolean isApplicationScope()

Specified by:
isApplicationScope in interface ScopedBeanDefinition
Returns:
true if bean is declared in application-scope otherwise false

isSessionScope

public boolean isSessionScope()

Specified by:
isSessionScope in interface ScopedBeanDefinition
Returns:
true if bean is declared in session-scope otherwise false

isRequestScope

public boolean isRequestScope()

Specified by:
isRequestScope in interface ScopedBeanDefinition
Returns:
true if bean is declared in request-scope otherwise false

isNoneScope

public boolean isNoneScope()

Specified by:
isNoneScope in interface ScopedBeanDefinition
Returns:
true if bean is declared in none-scope otherwise false

getScope

public java.lang.String getScope()

Specified by:
getScope in interface ScopedBeanDefinition
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.

Specified by:
setScope in interface ScopedBeanDefinition
Parameters:
scope - the scope

SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG