Package org.w3c.tools.resources

Examples of org.w3c.tools.resources.DummyResourceReference


     * get this server config resource
     */
    public ResourceReference getConfigResource() {
  if ( rr_configResource == null ) {
      configResource = new ConfigResource(this);
      rr_configResource = new DummyResourceReference(configResource);
  }
  return rr_configResource;
    }
View Full Code Here


  if (frame != null)
      return;
  statistics = new Stats(this);
  statsres = new FramedResource(); // create an empty resource
  statsres.registerFrame(statistics, new Hashtable(1));
  drr = new DummyResourceReference(statsres);
    }   
View Full Code Here

    protected ResourceReference contentTypes  = null;

    protected synchronized ResourceReference getDirectories() {
  if ( directories == null ) {
      String diridxid = getIdentifier()+"-d";
      directories = new DummyResourceReference(
             new TemplateContainer(
             new ResourceContext(getContext()),
                 diridxid+".db"));
  }
  return directories;
View Full Code Here

    }

    protected synchronized ResourceReference getExtensions() {
  if ( extensions == null ) {
      String extidxid = getIdentifier()+"-e";
      extensions = new DummyResourceReference(
            new TemplateContainer(
            new ResourceContext(getContext()),
                extidxid+".db"));
  }
  return extensions;
View Full Code Here

     */
    public synchronized void delete()
  throws MultipleLockException
    {
  // Remove the two stores we are responsible for:
  DummyResourceReference rr = (DummyResourceReference) getExtensions();
  try {
      Resource r = rr.lock();
      r.delete();
  } catch (InvalidResourceException ex) {
  } finally {
      rr.invalidate();
      rr.unlock();
  }

  rr = (DummyResourceReference) getDirectories();
  try {
      Resource r = rr.lock();
      r.delete();
  } catch (InvalidResourceException ex) {
  } finally {
      rr.invalidate();
      rr.unlock();
  }

  super.delete();
    }
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.