Package org.apache.lenya.ac.impl

Examples of org.apache.lenya.ac.impl.ItemConfiguration


  /**
   * @see org.apache.lenya.ac.Item#configure(org.apache.avalon.framework.configuration.Configuration)
   */
  public void configure(Configuration config) throws ConfigurationException {
    new ItemConfiguration().configure(this, config);

    String networkAddress = config.getChild(ELEMENT_NETWORK_ADDRESS).getValue();
    String subnetMask = config.getChild(ELEMENT_SUBNET_MASK).getValue();

    try {
View Full Code Here


   *
   * @return a <code>Configuration</code>
   */
  protected Configuration createConfiguration() {
    DefaultConfiguration config = new DefaultConfiguration(IP_RANGE);
    new ItemConfiguration().save(this, config);

    DefaultConfiguration networkAddressConfig =
      new DefaultConfiguration(ELEMENT_NETWORK_ADDRESS);
    networkAddressConfig.setValue(getNetworkAddress().getHostAddress());
    config.addChild(networkAddressConfig);
View Full Code Here

     *
     * @param config containing the role details
     * @throws ConfigurationException if the <code>FileRole</code> could not be configured
     */
    public void configure(Configuration config) throws ConfigurationException {
        new ItemConfiguration().configure(this, config);
    }
View Full Code Here

     *
     * @return a <code>Configuration</code>
     */
    private Configuration createConfiguration() {
        DefaultConfiguration config = new DefaultConfiguration(ROLE);
        new ItemConfiguration().save(this, config);
        return config;
    }
View Full Code Here

TOP

Related Classes of org.apache.lenya.ac.impl.ItemConfiguration

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.