org.jboss.virtual.plugins.context
Class ReplacementHandler

java.lang.Object
  extended by org.jboss.virtual.plugins.context.AbstractVirtualFileHandler
      extended by org.jboss.virtual.plugins.context.DelegatingHandler
          extended by org.jboss.virtual.plugins.context.ReplacementHandler
All Implemented Interfaces:
Serializable, VirtualFileHandler

public class ReplacementHandler
extends DelegatingHandler

A replacement handler. It uses delegate's vfs context.

Author:
ales.justin@jboss.org
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler
cachedLastModified, log
 
Constructor Summary
ReplacementHandler(VFSContext context, VirtualFileHandler parent, String name, VirtualFileHandler delegate)
           
 
Method Summary
 VFSContext getVFSContext()
          Get this handler's most outer context (contexts can be mounted one within other).
 
Methods inherited from class org.jboss.virtual.plugins.context.DelegatingHandler
cleanup, close, delete, equals, exists, getChild, getChildren, getDelegate, getLastModified, getRealURL, getSize, hashCode, internalReplaceChild, isArchive, isHidden, isLeaf, isNested, openStream, removeChild, setDelegate, setVfsUrl, toURI, toURL, toVfsUrl
 
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler
checkClosed, checkParentExists, decrement, doClose, getChildPathName, getChildVfsUrl, getLocalPathName, getLocalVFSContext, getName, getParent, getPathName, getReferences, getVfsUrl, getVirtualFile, hasBeenModified, increment, isTemporary, replaceChild, setPathName, simpleFindChild, structuredFindChild, toInternalVfsUrl, toString, toStringLocal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplacementHandler

public ReplacementHandler(VFSContext context,
                          VirtualFileHandler parent,
                          String name,
                          VirtualFileHandler delegate)
Method Detail

getVFSContext

public VFSContext getVFSContext()
Description copied from class: AbstractVirtualFileHandler
Get this handler's most outer context (contexts can be mounted one within other).

Specified by:
getVFSContext in interface VirtualFileHandler
Overrides:
getVFSContext in class AbstractVirtualFileHandler
Returns:
context


Copyright © 2009 JBoss, A division of Red Hat, Inc. All Rights Reserved.