Package com.caucho.config.xml

Examples of com.caucho.config.xml.XmlConfigContext


  /**
   * Returns the variable resolver.
   */
  public static ConfigELContext getELContext()
  {
    XmlConfigContext builder = XmlConfigContext.getCurrentBuilder();

    if (builder != null) {
      return builder.getELContext();
    }
    else
      return null;
  }
View Full Code Here


  @Override
  public <T> void inject(T bean, CreationalContext<T> cxt)
    throws ConfigException
  {
    XmlConfigContext env = XmlConfigContext.create();
   
    CreationalContext<?> oldCxt = env.setCreationalContext(cxt);
   
    try {
      env.configureAttribute(bean, _node);
    } finally {
      env.setCreationalContext(oldCxt);
    }
  }
View Full Code Here

  @Override
  public <T> T create(ConfigType<T> type, CreationalContext<T> cxt)
    throws ConfigException
  {
    XmlConfigContext env = XmlConfigContext.create();
   
    return (T) env.create(_node, type);
  }
View Full Code Here

  @Override
  public <T> void inject(T bean, CreationalContext<T> cxt)
    throws ConfigException
  {
    XmlConfigContext env = XmlConfigContext.getCurrent();
   
    env.configureBean(bean, _node);
  }
View Full Code Here

  {
  }
 
  public String toString()
  {
    XmlConfigContext env = XmlConfigContext.getCurrent();

    if (env != null) {
      String file = env.getBaseUri();

      if (file != null) {
        String dir = Vfs.lookup(file).getParent().getURL();

        return Vfs.decode(dir);
View Full Code Here

  private FileVar()
  {
  }
  public String toString()
  {
    XmlConfigContext env = XmlConfigContext.getCurrent();

    if (env != null)
      return env.getBaseUri();
    else {
      throw new IllegalStateException(L.l("__FILE__ is only available during configuration"));
    }
  }
View Full Code Here

TOP

Related Classes of com.caucho.config.xml.XmlConfigContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.