com.ptc.windchill.util.packaging.install
Class ModuleRegistrarImpl

java.lang.Object
  extended bycom.ptc.windchill.util.packaging.install.ModuleRegistrarImpl
All Implemented Interfaces:
ModuleRegistrar

public class ModuleRegistrarImpl
extends Object
implements ModuleRegistrar



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
static boolean DEBUG
           
private static boolean FORCE_INSTALL
           
private static UnitIdentifierFactory idFactory
           
private static DebugWriter LOG
           
static boolean PROCESS_MULTIPLE
           
private  HashSet processedModules
           
private  InstallPublisher publisher
           
private static MutableModuleRegistry registry
           
private static String RESOURCE
           
protected static MappedRegistry scmRegistry
           
 
Constructor Summary
ModuleRegistrarImpl()
           
 
Method Summary
private  boolean dirExists(String dir)
           
protected  InstallPublisher getPublisher()
          Gets the object for the association that plays role: publisher.
protected  void installDependencies(ModuleDescriptor module)
          

Supported API: false
protected  void installModule(ModuleDescriptor module)
          

Supported API: false
 void installModule(String name, boolean dependencies)
          Install named module into ModuleRegistry and ensure that; any current PackagingConsumers are notified of the new module, and any new PackagingConsumers are added to the list of interested notification recipients.
 void installModule(UnitIdentifier module, boolean dependencies)
          Install identified module into ModuleRegistry and ensure that; any current PackagingConsumers are notified of the new module, and any new PackagingConsumers are added to the list of interested notification recipients.
 boolean isInstalled(ModuleDescriptor module)
          Determine if a module is installed.
protected  void processedModule(UnitIdentifier module)
           
protected  void unInstallDependencies(ModuleDescriptor module)
          

Supported API: false
protected  void unInstallModule(ModuleDescriptor module)
          

Supported API: false
 void unInstallModule(String name, boolean dependencies)
          Uninstall identified module from ModuleRegistry and ensure that; any current PackagingConsumers are notified of the removed module, and any removed PackagingConsumers are removed from the list of interested notification recipients.
 void unInstallModule(UnitIdentifier module, boolean dependencies)
          Uninstall named module from ModuleRegistry and ensure that; any current PackagingConsumers are notified of the removed module, and any removed PackagingConsumers are removed from the list of interested notification recipients.
 
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

publisher

private InstallPublisher publisher

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG

idFactory

private static UnitIdentifierFactory idFactory

registry

private static MutableModuleRegistry registry

FORCE_INSTALL

private static final boolean FORCE_INSTALL

PROCESS_MULTIPLE

public static final boolean PROCESS_MULTIPLE
See Also:
Constant Field Values

processedModules

private HashSet processedModules

scmRegistry

protected static MappedRegistry scmRegistry
Constructor Detail

ModuleRegistrarImpl

public ModuleRegistrarImpl()
Method Detail

getPublisher

protected InstallPublisher getPublisher()
Gets the object for the association that plays role: publisher.

Supported API: false

Returns:
InstallPublisher

installModule

protected void installModule(ModuleDescriptor module)
                      throws WTException


Supported API: false

Parameters:
module -
Throws:
WTException

installDependencies

protected void installDependencies(ModuleDescriptor module)
                            throws WTException


Supported API: false

Parameters:
module -
Throws:
WTException

unInstallModule

protected void unInstallModule(ModuleDescriptor module)
                        throws WTException


Supported API: false

Parameters:
module -
Throws:
WTException

unInstallDependencies

protected void unInstallDependencies(ModuleDescriptor module)
                              throws WTException


Supported API: false

Parameters:
module -
Throws:
WTException

installModule

public void installModule(String name,
                          boolean dependencies)
                   throws WTException
Install named module into ModuleRegistry and ensure that; any current PackagingConsumers are notified of the new module, and any new PackagingConsumers are added to the list of interested notification recipients. If dependencies are also to be processed, ensure that all dependent modules are also registered.

Supported API: false

Specified by:
installModule in interface ModuleRegistrar
Parameters:
name -
dependencies -
Throws:
WTException

installModule

public void installModule(UnitIdentifier module,
                          boolean dependencies)
                   throws WTException
Install identified module into ModuleRegistry and ensure that; any current PackagingConsumers are notified of the new module, and any new PackagingConsumers are added to the list of interested notification recipients. If dependencies are also to be processed, ensure that all dependent modules are also registered.

Supported API: false

Specified by:
installModule in interface ModuleRegistrar
Parameters:
module -
dependencies -
Throws:
WTException

unInstallModule

public void unInstallModule(String name,
                            boolean dependencies)
                     throws WTException
Uninstall identified module from ModuleRegistry and ensure that; any current PackagingConsumers are notified of the removed module, and any removed PackagingConsumers are removed from the list of interested notification recipients. If dependencies are also to be processed, remove any Subsystems dependencies, which are not dependencies of any remaining Subsystems.

Supported API: false

Specified by:
unInstallModule in interface ModuleRegistrar
Parameters:
name -
dependencies -
Throws:
WTException

unInstallModule

public void unInstallModule(UnitIdentifier module,
                            boolean dependencies)
                     throws WTException
Uninstall named module from ModuleRegistry and ensure that; any current PackagingConsumers are notified of the removed module, and any removed PackagingConsumers are removed from the list of interested notification recipients. If dependencies are also to be processed, remove any Subsystems dependencies, which are not dependencies of any remaining Subsystems.

Supported API: false

Specified by:
unInstallModule in interface ModuleRegistrar
Parameters:
module -
dependencies -
Throws:
WTException

isInstalled

public boolean isInstalled(ModuleDescriptor module)
Determine if a module is installed.

Supported API: false

Parameters:
module -

dirExists

private boolean dirExists(String dir)

processedModule

protected void processedModule(UnitIdentifier module)