|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.util.packaging.processor.PackagingTraverser
com.ptc.windchill.util.packaging.install.AbstractPackagingConsumer
A class that consumes information from the packaging organization hieracrchy.
Supported API: false
Extendable: false
Field Summary | |
private ModuleArtifact |
cacheArtifact
|
private boolean |
cached
|
private static String |
CLASSNAME
|
private String |
context
|
static boolean |
DEBUG
|
private boolean |
initialized
|
protected static String |
INSTALL_CONTEXT
|
private static DebugWriter |
LOG
|
private static String |
RESOURCE
|
private static String |
SIMPLE_CLASSNAME
|
Fields inherited from class com.ptc.windchill.util.packaging.processor.PackagingTraverser |
PROCESS_3RD_PARTY, PROCESS_DEPS, PROCESS_MULTIPLE, PROCESS_NON_MODELED, RECURSE_DEPS |
Constructor Summary | |
AbstractPackagingConsumer()
|
Method Summary | |
protected abstract String |
getArtifactExtension()
Get the file extension for the artifacts being processed. |
protected ModuleArtifact |
getCacheArtifact()
Get the aggregated cache artifact. |
protected abstract String |
getConsumerName()
Get the name of the consumer. |
protected String |
getContext()
Gets the value of the attribute: context. |
protected ModuleArtifact |
getUnitArtifact(UnitIdentifier unit)
Get the unit supplied artifact. |
void |
initialize()
Initialize any configuration variables and prepare output files for writing (loadCache). |
protected void |
initializeConfiguration()
Intitialize configuration variables. |
protected boolean |
isCached()
Gets the value of the attribute: cached. |
protected boolean |
isInitialized()
Gets the value of the attribute: initialized. |
protected abstract boolean |
loadCache()
Load the aggregate cache artifact. |
void |
postProcess()
Write and close output files (storeCache). |
void |
processModule(UnitIdentifier module_identifier,
boolean deps,
boolean recurse)
Overrides the super class, in order to wrap with consumer specific initialization and cache handling, prior to processing the module. |
protected void |
setCached(boolean a_Cached)
Sets the value of the attribute: cached. |
protected void |
setContext(String a_Context)
Sets the value of the attribute: context. |
protected void |
setInitialized(boolean a_Initialized)
Sets the value of the attribute: initialized. |
protected abstract void |
storeCache()
Store the aggregate cache artifact. |
Methods inherited from class com.ptc.windchill.util.packaging.processor.PackagingTraverser |
argsOK, execute, getModuleIdentifier, isFile, isIncludedModule, isIncludedPackage, packageName, processClass, processClass, processDependency, processedModule, processFile, processModule, processModule, processModule, processPackage, processPackage, processRegistry, processSubsystem, processSubsystem, processTarget, processTargets, setClassProcessor, setModuleProcessor, setPackageProcessor, setRegistryProcessor, setSubsystemProcessor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private boolean initialized
private boolean cached
private String context
protected static final String INSTALL_CONTEXT
private static final String SIMPLE_CLASSNAME
public static final boolean DEBUG
private static final DebugWriter LOG
private ModuleArtifact cacheArtifact
Constructor Detail |
public AbstractPackagingConsumer()
Method Detail |
protected boolean isInitialized()
protected void setInitialized(boolean a_Initialized)
a_Initialized
- protected boolean isCached()
protected void setCached(boolean a_Cached) throws WTPropertyVetoException
a_Cached
-
WTPropertyVetoException
protected String getContext()
protected void setContext(String a_Context) throws WTPropertyVetoException
a_Context
-
WTPropertyVetoException
public void processModule(UnitIdentifier module_identifier, boolean deps, boolean recurse) throws WTException
processModule
in class PackagingTraverser
module_identifier
- deps
- recurse
-
WTException
protected void initializeConfiguration()
public void initialize() throws WTException
initialize
in class PackagingTraverser
WTException
public void postProcess() throws WTException
postProcess
in class PackagingTraverser
WTException
protected abstract String getConsumerName()
protected abstract String getArtifactExtension()
protected ModuleArtifact getUnitArtifact(UnitIdentifier unit)
unit
-
protected ModuleArtifact getCacheArtifact()
protected abstract boolean loadCache() throws WTException
WTException
protected abstract void storeCache() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |