当前位置: 首页>>代码示例>>Java>>正文


Java VariableResolver类代码示例

本文整理汇总了Java中javax.faces.el.VariableResolver的典型用法代码示例。如果您正苦于以下问题:Java VariableResolver类的具体用法?Java VariableResolver怎么用?Java VariableResolver使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VariableResolver类属于javax.faces.el包,在下文中一共展示了VariableResolver类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getValue

import javax.faces.el.VariableResolver; //导入依赖的package包/类
@Override
public Object getValue(FacesContext context)
{
  String varName;
  int period = _expression.indexOf('.');
  if (period < 0)
    varName = _expression;
  else
    varName = _expression.substring(0, period);

  VariableResolver vr = context.getApplication().getVariableResolver();
  Object var =  vr.resolveVariable(context, varName);
  if (period < 0)
    return var;

  return _resolveProperty(context, var, _expression.substring(period + 1));
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:18,代码来源:MValueBinding.java

示例2: getInstance

import javax.faces.el.VariableResolver; //导入依赖的package包/类
public Object getInstance() throws InstantiationException
{
    FacesContext facesContext = FacesContext.getCurrentInstance();
    if (facesContext == null)
    {
        log.error("Object " + getManagedBeanName() + " cannot be created since the faces context is null");
        return null;
    }

    Application application = facesContext.getApplication();
    Object resolvedObject = null;

    if (isVBExpression(getManagedBeanName()))
    {
        ValueBinding vb = application.createValueBinding(getManagedBeanName());
        if (vb != null)
        {
            resolvedObject = vb.getValue(facesContext);
        }
    }
    else
    {
        VariableResolver resolver = application.getVariableResolver();
        resolvedObject = resolver.resolveVariable(facesContext, getManagedBeanName());
    }

    return resolvedObject;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:29,代码来源:JsfCreator.java

示例3: getInstance

import javax.faces.el.VariableResolver; //导入依赖的package包/类
@Override
public Object getInstance() throws InstantiationException
{
    FacesContext facesContext = FacesContext.getCurrentInstance();
    if (facesContext == null)
    {
        log.error("Object " + getManagedBeanName() + " cannot be created since the faces context is null");
        return null;
    }

    Application application = facesContext.getApplication();
    Object resolvedObject = null;

    if (isVBExpression(getManagedBeanName()))
    {
        ValueBinding vb = application.createValueBinding(getManagedBeanName());
        if (vb != null)
        {
            resolvedObject = vb.getValue(facesContext);
        }
    }
    else
    {
        VariableResolver resolver = application.getVariableResolver();
        resolvedObject = resolver.resolveVariable(facesContext, getManagedBeanName());
    }

    return resolvedObject;
}
 
开发者ID:directwebremoting,项目名称:dwr,代码行数:30,代码来源:JsfCreator.java

示例4: getTableOfContents

import javax.faces.el.VariableResolver; //导入依赖的package包/类
/**
 * get table of contents
 * @return Returns the tableOfContents.
 */
public TableOfContents getTableOfContents()
{
  if (tableOfContents == null)
  {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    VariableResolver resolver = facesContext.getApplication()
        .getVariableResolver();
    tableOfContents = ((TableOfContentsTool) resolver.resolveVariable(
        facesContext, "TableOfContentsTool")).getTableOfContents();
  }
  return tableOfContents;
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:17,代码来源:TOCDisplayTool.java

示例5: resolveManagedBean

import javax.faces.el.VariableResolver; //导入依赖的package包/类
/**
 * Resolves a managed bean variable.
 * @param managedBeanName the configured name of the managed bean
 * @return the located object (can be null)
 */
public Object resolveManagedBean(String managedBeanName) {
  Object oBean = null;
  String sn = Val.chkStr(managedBeanName);
  FacesContext fc = getFacesContext();
  if ((sn.length() > 0) && (fc != null) && (fc.getApplication() != null)) {
    VariableResolver resolver = fc.getApplication().getVariableResolver();
    if (resolver != null) {
      oBean = resolver.resolveVariable(fc,sn);
    }
  }
  return oBean;
}
 
开发者ID:GeoinformationSystems,项目名称:GeoprocessingAppstore,代码行数:18,代码来源:FacesContextBroker.java

示例6: getVariableResolver

import javax.faces.el.VariableResolver; //导入依赖的package包/类
@Override
public VariableResolver getVariableResolver() {
    throw new UnsupportedOperationException();
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:5,代码来源:ApplicationStub.java

示例7: setVariableResolver

import javax.faces.el.VariableResolver; //导入依赖的package包/类
@Override
public void setVariableResolver(VariableResolver arg0) {
    throw new UnsupportedOperationException();
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:5,代码来源:ApplicationStub.java

示例8: getVariableResolver

import javax.faces.el.VariableResolver; //导入依赖的package包/类
@Override
public VariableResolver getVariableResolver()
{
  return _variableResolver;
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:6,代码来源:MApplication.java

示例9: setVariableResolver

import javax.faces.el.VariableResolver; //导入依赖的package包/类
@Override
public void setVariableResolver(VariableResolver resolver)
{
  _variableResolver = resolver;
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:6,代码来源:MApplication.java

示例10: MELResolver

import javax.faces.el.VariableResolver; //导入依赖的package包/类
public MELResolver(VariableResolver vr, PropertyResolver pr)
{
  _vr = vr;
  _pr = pr;
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:6,代码来源:MELResolver.java

示例11: MockELResolver

import javax.faces.el.VariableResolver; //导入依赖的package包/类
public MockELResolver(VariableResolver vr, PropertyResolver pr)
{
  _vr = vr;
  _pr = pr;
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:6,代码来源:MockELResolver.java

示例12: SpringBeanVariableResolver

import javax.faces.el.VariableResolver; //导入依赖的package包/类
public SpringBeanVariableResolver(VariableResolver originalVariableResolver) {
	super(originalVariableResolver);
}
 
开发者ID:deathspeeder,项目名称:class-guard,代码行数:4,代码来源:SpringBeanVariableResolver.java

示例13: getCurrentInstance

import javax.faces.el.VariableResolver; //导入依赖的package包/类
/**
 * Gets current instance of the controller.
 * @return current instance of the controller
 */
public static LiveDataController getCurrentInstance() {
  FacesContext fc = FacesContext.getCurrentInstance();
  VariableResolver vr = fc.getApplication().getVariableResolver();
  return (LiveDataController) vr.resolveVariable(fc, "LiveDataController");
}
 
开发者ID:GeoinformationSystems,项目名称:GeoprocessingAppstore,代码行数:10,代码来源:LiveDataController.java

示例14: GuiceVariableResolver

import javax.faces.el.VariableResolver; //导入依赖的package包/类
public GuiceVariableResolver(VariableResolver resolver){
	this.resolver=resolver;
}
 
开发者ID:mwambler,项目名称:webshell-xpages-ext-lib,代码行数:4,代码来源:GuiceVariableResolver.java

示例15: AnnotatedBeanResolver

import javax.faces.el.VariableResolver; //导入依赖的package包/类
public AnnotatedBeanResolver(final VariableResolver resolver) {
	delegate_ = resolver;
}
 
开发者ID:jesse-gallagher,项目名称:XPages-Scaffolding,代码行数:4,代码来源:AnnotatedBeanResolver.java


注:本文中的javax.faces.el.VariableResolver类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。