Package com.caucho.config.program

Examples of com.caucho.config.program.PropertyStringProgram


    }
    else if ("DataSource".equals(type)) {
      _driverType = TYPE_DATA_SOURCE;
    }
    else if (hasDriverTypeMethod(_driverClass)) {
      _init.addProgram(new PropertyStringProgram("driverType", type));
    }
    else {
      throw new ConfigException(L.l("'{0}' is an unknown driver type. Valid types are 'ConnectionPoolDataSource', 'XADataSource' and 'Driver'"));
    }
  }
View Full Code Here


      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

    }
    else if ("DataSource".equals(type)) {
      _driverType = TYPE_DATA_SOURCE;
    }
    else if (hasDriverTypeMethod(_driverClass)) {
      _init.addProgram(new PropertyStringProgram("driverType", type));
    }
    else {
      throw new ConfigException(L.l("'{0}' is an unknown driver type. Valid types are 'ConnectionPoolDataSource', 'XADataSource' and 'Driver'"));
    }
  }
View Full Code Here

  public void addStringProperty(String name, String value)
  {
    if (_init == null)
      _init = new ContainerProgram();

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

  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

      Object bean = create(null, TEXT);

      inject(bean);
     
      try {
  ConfigProgram program = new PropertyStringProgram(TEXT, text);

  if (_addProgram != null)
    _addProgram.setValue(bean, TEXT, program);
  else
    _addContentProgram.setValue(bean, TEXT, program);
View Full Code Here

  public void setText(Object parent, QName name, String text)
    throws ConfigException
  {
    CustomBeanConfig customBean = (CustomBeanConfig) parent;

    customBean.addBuilderProgram(new PropertyStringProgram(name, text));
  }
View Full Code Here

  public void addStringProperty(String name, String value)
  {
    if (_init == null)
      _init = new ContainerProgram();

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

  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

      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.PropertyStringProgram

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.