org.jboss.virtual.spi
Interface FileHandlerPlugin


public interface FileHandlerPlugin

This knows how to create a virtual file handler from a file or uri.

Author:
Ales Justin

Field Summary
static java.util.Comparator<FileHandlerPlugin> COMPARATOR
          The relative order comparator.
 
Method Summary
 VirtualFileHandler createHandler(VFSContext context, VirtualFileHandler parent, java.io.File file)
          Create new virtual file handler from a file or uri.
 int getRelativeOrder()
          Get relative order.
 

Field Detail

COMPARATOR

static final java.util.Comparator<FileHandlerPlugin> COMPARATOR
The relative order comparator.

Method Detail

getRelativeOrder

int getRelativeOrder()
Get relative order.

Returns:
the order number

createHandler

VirtualFileHandler createHandler(VFSContext context,
                                 VirtualFileHandler parent,
                                 java.io.File file)
                                 throws java.io.IOException
Create new virtual file handler from a file or uri.

Parameters:
context - the current context
parent - the parent virtual file handler
file - the current file (non null)
Returns:
new virtual file handler or null if cannot create one
Throws:
java.io.IOException - for any error