uk.ac.ed.inf.ogsaconfig.garm.collections.generators
Class WSDDGenerator

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.collections.generators.WSDDGenerator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
BasicWSDDGenerator

public abstract class WSDDGenerator
extends java.lang.Object
implements Generator

This forms a base for generators creating the Axis server-config.wsdd and client-config.wsdd files.


Constructor Summary
protected WSDDGenerator()
           
 
Method Summary
 boolean add(VFile vfile)
          Informs the generator that an attempt has been made to add a file to the collection.
 VFile[] getChangedFiles(VFileSourceSet sourceFiles)
          This routine returns any files changed since it was last called, typically as a result of add or remove
protected abstract  VFile regenerateClient(VFile[] clientFiles)
           
protected abstract  VFile regenerateServer(VFile[] serverFiles)
           
 boolean remove(VFile vfile)
          Informs the generator that an attempt was made to remove a file from the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDDGenerator

protected WSDDGenerator()
Method Detail

add

public boolean add(VFile vfile)
Description copied from interface: Generator
Informs the generator that an attempt has been made to add a file to the collection. Should return true if this operation caused one or more generator managed files to change.

Specified by:
add in interface Generator

remove

public boolean remove(VFile vfile)
Description copied from interface: Generator
Informs the generator that an attempt was made to remove a file from the collection. Should return true if a generated file changed because of this operation

Specified by:
remove in interface Generator

getChangedFiles

public VFile[] getChangedFiles(VFileSourceSet sourceFiles)
Description copied from interface: Generator
This routine returns any files changed since it was last called, typically as a result of add or remove

Specified by:
getChangedFiles in interface Generator
Parameters:
sourceFiles - are the files that should be used for any generation

regenerateServer

protected abstract VFile regenerateServer(VFile[] serverFiles)
Parameters:
serverFiles - is the set of server-deploy.wsdd files active
Returns:
is a generated server-config.wsdd

regenerateClient

protected abstract VFile regenerateClient(VFile[] clientFiles)
Parameters:
clientFiles - is the set of client-deploy.wsdd files active
Returns:
is a generated client-config.wsdd