Package com.caucho.config.program

Examples of com.caucho.config.program.ContainerProgram


   * Creates the form-login-config
   */
  public ContainerProgram createFormLoginConfig()
  {
    if (_formLoginConfig == null)
      _formLoginConfig = new ContainerProgram();

    return _formLoginConfig;
  }
View Full Code Here


   * Creates the init
   */
  public ContainerProgram createInit()
  {
    if (_init == null)
      _init = new ContainerProgram();

    return _init;
  }
View Full Code Here

   * Adds an init program.
   */
  public void addBuilderProgram(ConfigProgram init)
  {
    if (_builderProgram == null)
      _builderProgram = new ContainerProgram();

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

   * Adds an init program.
   */
  public void addInitProgram(ConfigProgram init)
  {
    if (_initProgram == null)
      _initProgram = new ContainerProgram();

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

   * Adds an undefined value, e.g. env-entry
   */
  public void addBuilderProgram(ConfigProgram init)
  {
    if (_serverProgram == null)
      _serverProgram = new ContainerProgram();

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

  }

  public void setInit(ContainerProgram init)
  {
    if (_initProgram == null)
      _initProgram = new ContainerProgram();

    _initProgram.addProgram(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

   
    Class type = factory.getDriverClassByUrl(ResourceAdapter.class, url);

    setClass(type.getName());

    ContainerProgram program = factory.getUrlProgram(url);

    if (program == null) {
    }
    else if (_init == null)
      _init = program;
View Full Code Here

        _bean.inject(filter, env);

        // InjectIntrospector.configure(filter);

        // Initialize bean properties
        ContainerProgram init = config.getInit();

        if (init != null)
          init.configure(filter);

        _bean.postConstruct(filter);

        filter.init(config);
View Full Code Here

    servlet.setServletName(_serviceName);
    servlet.addURLPattern("/*");
    servlet.addURLRegexp(".*");
    servlet.setServletClass(ManagementServlet.class.getName());

    ContainerProgram servletInit = new ContainerProgram();
    servletInit.addProgram(new PropertyValueProgram("service", this));
    servlet.setInit(servletInit);

    webAppConfig.addBuilderProgram(new PropertyValueProgram("servlet-mapping", servlet));

    SecurityConstraint constraint = new SecurityConstraint();
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.