java类org.springframework.beans.factory.config.Scope的实例源码

AbstractBeanFactory.java 文件源码 项目:spring4-understanding 阅读 28 收藏 0 点赞 0 评论 0
@Override
public Scope getRegisteredScope(String scopeName) {
    Assert.notNull(scopeName, "Scope identifier must not be null");
    return this.scopes.get(scopeName);
}
AbstractBeanFactory.java 文件源码 项目:spring 阅读 23 收藏 0 点赞 0 评论 0
@Override
public Scope getRegisteredScope(String scopeName) {
    Assert.notNull(scopeName, "Scope identifier must not be null");
    return this.scopes.get(scopeName);
}
DefaultScopeDesctructionCallback.java 文件源码 项目:spring-scopes 阅读 20 收藏 0 点赞 0 评论 0
public DefaultScopeDesctructionCallback(Scope scope, String name) {
    super(scope, name);
}
AbstractBeanFactory.java 文件源码 项目:class-guard 阅读 46 收藏 0 点赞 0 评论 0
public Scope getRegisteredScope(String scopeName) {
    Assert.notNull(scopeName, "Scope identifier must not be null");
    return this.scopes.get(scopeName);
}
AbstractBeanFactory.java 文件源码 项目:lams 阅读 32 收藏 0 点赞 0 评论 0
/**
 * Evaluate the given String as contained in a bean definition,
 * potentially resolving it as an expression.
 * @param value the value to check
 * @param beanDefinition the bean definition that the value comes from
 * @return the resolved value
 * @see #setBeanExpressionResolver
 */
protected Object evaluateBeanDefinitionString(String value, BeanDefinition beanDefinition) {
    if (this.beanExpressionResolver == null) {
        return value;
    }
    Scope scope = (beanDefinition != null ? getRegisteredScope(beanDefinition.getScope()) : null);
    return this.beanExpressionResolver.evaluate(value, new BeanExpressionContext(this, scope));
}
AbstractBeanFactory.java 文件源码 项目:spring4-understanding 阅读 20 收藏 0 点赞 0 评论 0
/**
 * Evaluate the given String as contained in a bean definition,
 * potentially resolving it as an expression.
 * @param value the value to check
 * @param beanDefinition the bean definition that the value comes from
 * @return the resolved value
 * @see #setBeanExpressionResolver
 */
protected Object evaluateBeanDefinitionString(String value, BeanDefinition beanDefinition) {
    if (this.beanExpressionResolver == null) {
        return value;
    }
    Scope scope = (beanDefinition != null ? getRegisteredScope(beanDefinition.getScope()) : null);
    return this.beanExpressionResolver.evaluate(value, new BeanExpressionContext(this, scope));
}
AbstractBeanFactory.java 文件源码 项目:spring 阅读 33 收藏 0 点赞 0 评论 0
/**
 * Evaluate the given String as contained in a bean definition,
 * potentially resolving it as an expression.
 * @param value the value to check
 * @param beanDefinition the bean definition that the value comes from
 * @return the resolved value
 * @see #setBeanExpressionResolver
 */
protected Object evaluateBeanDefinitionString(String value, BeanDefinition beanDefinition) {
    if (this.beanExpressionResolver == null) {
        return value;
    }
    Scope scope = (beanDefinition != null ? getRegisteredScope(beanDefinition.getScope()) : null);
    return this.beanExpressionResolver.evaluate(value, new BeanExpressionContext(this, scope));
}
AbstractBeanFactory.java 文件源码 项目:class-guard 阅读 27 收藏 0 点赞 0 评论 0
/**
 * Evaluate the given String as contained in a bean definition,
 * potentially resolving it as an expression.
 * @param value the value to check
 * @param beanDefinition the bean definition that the value comes from
 * @return the resolved value
 * @see #setBeanExpressionResolver
 */
protected Object evaluateBeanDefinitionString(String value, BeanDefinition beanDefinition) {
    if (this.beanExpressionResolver == null) {
        return value;
    }
    Scope scope = (beanDefinition != null ? getRegisteredScope(beanDefinition.getScope()) : null);
    return this.beanExpressionResolver.evaluate(value, new BeanExpressionContext(this, scope));
}
AbstractScopeDestructionCallback.java 文件源码 项目:spring-scopes 阅读 16 收藏 0 点赞 0 评论 0
/**
 * Construct the Callback with the {@link Scope} and bean name
 * 
 * @param scope The {@link Scope} the destruction callback runs under
 * @param name The name of the bean
 */
public AbstractScopeDestructionCallback(Scope scope, String name) {
    this.scope = scope;
    this.name = name;
}


问题


面经


文章

微信
公众号

扫码关注公众号