org.jboss.virtual.plugins.context.vfs
Class AssembledContextFactory

java.lang.Object
  extended by org.jboss.virtual.plugins.context.vfs.AssembledContextFactory

public class AssembledContextFactory
extends Object

Factory for creating AssembledDirectory.

Version:
$Revision: 1.1 $
Author:
Bill Burke

Constructor Summary
AssembledContextFactory()
           
 
Method Summary
 AssembledDirectory create(String rootName)
          Creates an assembly returning the root AssembledDirectory .
 AssembledDirectory create(String name, String rootName)
          Creates an assembly returning the root AssembledDirectory .
 AssembledDirectory find(String name)
          Find an assembly.
static AssembledContextFactory getInstance()
          Get the instance.
 void remove(AssembledDirectory directory)
          Remove an assembly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssembledContextFactory

public AssembledContextFactory()
Method Detail

create

public AssembledDirectory create(String name,
                                 String rootName)
Creates an assembly returning the root AssembledDirectory . Creates an assembly base and registers it with a local hashmap under name.

Parameters:
name - the name of this assembly
rootName - the name of the root directory you want
Returns:

find

public AssembledDirectory find(String name)
Find an assembly. Usually used only by the URL protocol handlers.

Parameters:
name -
Returns:

create

public AssembledDirectory create(String rootName)
Creates an assembly returning the root AssembledDirectory . The assembly name will be randomly generated and registered with the internal hashmap registry.

Parameters:
rootName - the name of the root AssembledDirectory
Returns:

remove

public void remove(AssembledDirectory directory)
Remove an assembly

Parameters:
directory - the directory

getInstance

public static AssembledContextFactory getInstance()
Get the instance.

Returns:
the instance


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