Package org.w3c.tools.resources

Examples of org.w3c.tools.resources.DummyResourceReference


  return getRootReference();
    }

    public ResourceReference getRealmCatalogResource() {
  if (rr_realms == null)
      rr_realms = new DummyResourceReference(getRealmsCatalog());
  return rr_realms;
    }
View Full Code Here


    }

    public ResourceReference getControlResource() {
  if (rr_controlConfig == null) {
      controlConfig = new ControlResource(this);
      rr_controlConfig = new DummyResourceReference(controlConfig);
  }
  return rr_controlConfig;
    }
View Full Code Here

  return root;
    }

    public ResourceReference getRootReference() {
  if (rr_root == null)
      rr_root = new DummyResourceReference( root );
  return rr_root;
    }
View Full Code Here

      server.restart();
  } else if ( name.equalsIgnoreCase("stop") ) {
      server.shutdown();
  }
  if (self == null)
      self = new DummyResourceReference(this);
  return self;
    }
View Full Code Here

    public Enumeration enumerateResourceIdentifiers(boolean all) {
  return new PropertySetEnumeration(server.enumeratePropertySet());
    }

    public ResourceReference lookup(String name) {
  return new DummyResourceReference(server.getPropertySet(name));
    }
View Full Code Here

    }

    public ConfigResource(httpd server) {
  this.server = server;
  this.propConfig =
      new DummyResourceReference(new PropertiesConfig(server));
  this.realmConfig =
      new DummyResourceReference(server.getRealmsCatalog());
  this.controlConfig =
      new DummyResourceReference(new ControlResource(server));
  this.indexers =
      new DummyResourceReference( server.getIndexersCatalog() );
    }
View Full Code Here

  return null;
    }

    public synchronized ResourceReference getResourceReference() {
  if (self == null)
      self = new DummyResourceReference(this);
  return self;
    }
View Full Code Here

 
  ResourceReference rr = null;
 
  public ResourceReference getResourceReference() {
      if (rr == null)
    rr = new DummyResourceReference(this);
      return rr;
  }
View Full Code Here

     * @exception MultipleLockException if someone else has locked the resource
     */
    public synchronized void delete()
  throws MultipleLockException
    {
  DummyResourceReference rr =
      (DummyResourceReference) getContentTypes();
  try {
      Resource r = rr.lock();
      r.delete();
  } catch (InvalidResourceException ex) {
  } finally {
      rr.invalidate();
      rr.unlock();
  }
  super.delete();
    }
View Full Code Here

  this.transientFlag = true;
  Hashtable h        = new Hashtable(3);
  h.put(id, "realms");
  h.put(co, context);
  initialize(h);
  context.setResourceReference( new DummyResourceReference(this));
    }
View Full Code Here

TOP

Related Classes of org.w3c.tools.resources.DummyResourceReference

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.