Interface DBWSPackager
- All Known Implementing Classes:
EclipsePackager
,GlassfishPackager
,IDEPackager
,JavasePackager
,JBossPackager
,JDevPackager
,JSR109WebServicePackager
,ProviderPackager
,WarPackager
,WeblogicPackager
,WebSpherePackager
,XRPackager
public interface DBWSPackager
This interface defines methods necessary for packaging generated artifacts for
deployment to application servers, display in Java IDEs, etc.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionbuildSessionsXML
(OutputStream dbwsSessionsStream, DBWSBuilder builder) void
closeDeploymentDescriptorStream
(OutputStream descriptorOutputStream) Closes the provided OutputStream.void
closeOrStream
(OutputStream orStream) void
closeOxStream
(OutputStream oxStream) void
closeProviderClassStream
(OutputStream classProviderStream) void
closeProviderListenerClassStream
(OutputStream classProviderListenerStream) void
closeProviderListenerSourceStream
(OutputStream sourceProviderListenerStream) void
closeProviderSourceStream
(OutputStream sourceProviderStream) void
closeSchemaStream
(OutputStream schemaStream) void
closeServiceStream
(OutputStream serviceStream) void
closeSessionsStream
(OutputStream sessionsStream) void
closeSWARefStream
(OutputStream swarefStream) void
closeWebXmlStream
(OutputStream webXmlStream) void
closeWSDLStream
(OutputStream wsdlStream) void
end()
Return the name of the deployment descriptor file - this will depend on the target application server.Return an OutputStream to the deployment descriptor.getSessionsStream
(String sessionsFileName) getUsage()
boolean
void
setAdditionalArgs
(String[] additionalArgs) void
setArchiveFilename
(String archiveFilename) void
setArchiveUse
(DBWSPackager.ArchiveUse archiveUse) void
setDBWSBuilder
(DBWSBuilder builder) void
setHasAttachments
(boolean hasAttachments) void
setSessionsFileName
(String sessionsFileName) void
setStageDir
(File stageDir) void
start()
void
writeDeploymentDescriptor
(OutputStream descriptorOutputStream) Write the deployment descriptor contents to the provided OutputStream.void
writeProvider
(OutputStream sourceProviderStream, OutputStream codeGenProviderStream, OutputStream sourceProviderListenerStream, OutputStream classProviderListenerStream, DBWSBuilder builder) void
writeWebXml
(OutputStream webXmlStream, DBWSBuilder dbwsBuilder)
-
Method Details
-
setDBWSBuilder
-
setAdditionalArgs
-
getStageDir
File getStageDir() -
setStageDir
-
getSessionsFileName
String getSessionsFileName() -
setSessionsFileName
-
setHasAttachments
void setHasAttachments(boolean hasAttachments) -
hasAttachments
boolean hasAttachments() -
getPackagerLabel
String getPackagerLabel() -
setArchiveFilename
-
getArchiveFilename
String getArchiveFilename() -
start
void start() -
end
void end() -
getSchemaStream
- Throws:
FileNotFoundException
-
closeSchemaStream
-
getSessionsStream
- Throws:
FileNotFoundException
-
buildSessionsXML
-
closeSessionsStream
-
getServiceStream
- Throws:
FileNotFoundException
-
closeServiceStream
-
getOrStream
- Throws:
FileNotFoundException
-
getOrProjectPathPrefix
String getOrProjectPathPrefix() -
closeOrStream
-
getOxStream
- Throws:
FileNotFoundException
-
getOxProjectPathPrefix
String getOxProjectPathPrefix() -
closeOxStream
-
getWSDLStream
- Throws:
FileNotFoundException
-
getWSDLPathPrefix
String getWSDLPathPrefix() -
closeWSDLStream
-
getSWARefStream
- Throws:
FileNotFoundException
-
closeSWARefStream
-
getWebXmlStream
- Throws:
FileNotFoundException
-
writeWebXml
-
closeWebXmlStream
-
getProviderSourceStream
- Throws:
FileNotFoundException
-
closeProviderSourceStream
-
getProviderClassStream
- Throws:
FileNotFoundException
-
closeProviderClassStream
-
getProviderListenerClassStream
- Throws:
FileNotFoundException
-
closeProviderListenerClassStream
-
getProviderListenerSourceStream
- Throws:
FileNotFoundException
-
closeProviderListenerSourceStream
-
writeProvider
void writeProvider(OutputStream sourceProviderStream, OutputStream codeGenProviderStream, OutputStream sourceProviderListenerStream, OutputStream classProviderListenerStream, DBWSBuilder builder) -
writeDeploymentDescriptor
Write the deployment descriptor contents to the provided OutputStream. -
getDeploymentDescriptorStream
Return an OutputStream to the deployment descriptor.- Throws:
FileNotFoundException
-
closeDeploymentDescriptorStream
Closes the provided OutputStream. -
getDeploymentDescriptorFileName
String getDeploymentDescriptorFileName()Return the name of the deployment descriptor file - this will depend on the target application server. -
setArchiveUse
-
getUsage
String getUsage()
-