wt.inf.template.containercopy
Class FileBasedCopyRegistry

java.lang.Object
  extended bywt.inf.template.containercopy.FileBasedCopyRegistry

public class FileBasedCopyRegistry
extends Object



Supported API: false

Extendable: false


Nested Class Summary
(package private)  class FileBasedCopyRegistry.RegistryKey
           
(package private)  class FileBasedCopyRegistry.RegistryOrderKey
           
 
Field Summary
private static String CLASSNAME
           
private static Object initLock
           
private  boolean isInited
           
private static File loadDir
           
private  Map orderMap
           
private  Map registryMap
           
private static String RESOURCE
           
private static String TMPL_RB
           
 
Constructor Summary
FileBasedCopyRegistry()
          

Supported API: false
 
Method Summary
 ContainerCopyHandler getCopyHandler(Class containerClass, String handlerKey, String scriptIdentifier)
          

Supported API: false
 void initialize()
          

Supported API: false
static void main(String[] args)
           
 List massageToDoList(Class contClass, String scriptId, List toDoList)
          Internal method used to repair a broken todolist.
private  void updateRegistry(IxbDocument doc)
           
private  Class validateContainerClassAttribute(String className)
           
private  Class validateItemHandler(String itemHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

loadDir

private static final File loadDir

orderMap

private Map orderMap

registryMap

private Map registryMap

TMPL_RB

private static final String TMPL_RB

initLock

private static final Object initLock

isInited

private boolean isInited
Constructor Detail

FileBasedCopyRegistry

public FileBasedCopyRegistry()
                      throws WTException


Supported API: false

Throws:
WTException
Method Detail

getCopyHandler

public ContainerCopyHandler getCopyHandler(Class containerClass,
                                           String handlerKey,
                                           String scriptIdentifier)
                                    throws WTException


Supported API: false

Parameters:
containerClass -
handlerKey -
scriptIdentifier -
Returns:
ContainerCopyHandler
Throws:
WTException

initialize

public void initialize()
                throws WTException


Supported API: false

Throws:
WTException

massageToDoList

public List massageToDoList(Class contClass,
                            String scriptId,
                            List toDoList)
                     throws WTException
Internal method used to repair a broken todolist. (It is defined in broken if the ToDoList is in a different order than the XML registry

Supported API: false

Parameters:
contClass -
scriptId -
toDoList -
Returns:
List
Throws:
WTException

updateRegistry

private void updateRegistry(IxbDocument doc)
                     throws WTException
Throws:
WTException

validateItemHandler

private Class validateItemHandler(String itemHandler)
                           throws WTException
Throws:
WTException

validateContainerClassAttribute

private Class validateContainerClassAttribute(String className)
                                       throws WTException
Throws:
WTException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception