Package com.caucho.config.program

Examples of com.caucho.config.program.ContainerProgram


  }

  public void addInitProgram(ConfigProgram program)
  {
    if (_init == null)
      _init = new ContainerProgram();

    _init.addProgram(program);
  }
View Full Code Here


   * Adds an init property
   */
  public void addStringProperty(String name, String value)
  {
    if (_init == null)
      _init = new ContainerProgram();

    _init.addProgram(new PropertyStringProgram(name, value));
  }
View Full Code Here

   * Adds an init property
   */
  public void addProperty(String name, Object value)
  {
    if (_init == null)
      _init = new ContainerProgram();

    _init.addProgram(new PropertyValueProgram(name, value));
  }
View Full Code Here

   * Adds an init property
   */
  public void addOptionalStringProperty(String name, String value)
  {
    if (_init == null)
      _init = new ContainerProgram();

    _init.addProgram(0, new PropertyStringProgram(name, value, true));
  }
View Full Code Here

  public BeanBuilder<T> init(ConfigProgram init)
  {
    if (init != null) {
      if (_init == null) {
        _init = new ContainerProgram();
        _injectionTarget = new InjectionTargetFilter<T>(_injectionTarget, _init);
      }

      _init.addProgram(init);
    }
View Full Code Here

  }

  public void addInitProgram(ConfigProgram program)
  {
    if (_init == null) {
      _init = new ContainerProgram();

      /*
      if (_component != null)
        _component.setInit(_init);
      */
 
View Full Code Here

    String []props = properties.split("[;]");

    if (props.length == 0)
      return null;

    ContainerProgram program = new ContainerProgram();
    for (String prop : props) {
      if (prop.length() == 0)
        continue;

      String []values = prop.split("[=]");

      if (values.length != 2)
        throw new ConfigException(L.l("'{0}' is an invalid URL.  Bean URL syntax is 'scheme:prop1=value1;prop2=value2'", url));

      program.addProgram(new PropertyStringProgram(values[0], values[1]));
    }

    return program;
  }
View Full Code Here

TOP

Related Classes of com.caucho.config.program.ContainerProgram

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.