org.apache.pluto.util.assemble.ear
Class EarAssembler

java.lang.Object
  extended by org.apache.pluto.util.assemble.WebXmlRewritingAssembler
      extended by org.apache.pluto.util.assemble.AbstractArchiveAssembler
          extended by org.apache.pluto.util.assemble.ear.EarAssembler
All Implemented Interfaces:
Assembler

public class EarAssembler
extends AbstractArchiveAssembler

Assembles war files contained inside of an EAR. War files that do not contain a portlet.xml are not assembled. All files are copied into the destination archive.


Field Summary
 
Fields inherited from interface org.apache.pluto.util.assemble.Assembler
DISPATCH_SERVLET_CLASS, PORTLET_XML, SERVLET_XML
 
Constructor Summary
EarAssembler()
           
 
Method Summary
 void assembleInternal(AssemblerConfig config)
          Assemble the source file to the destination file.
protected  org.apache.pluto.util.assemble.ear.AssemblySink getAssemblySink(AssemblerConfig config, java.util.jar.JarEntry entry)
          Obtain a sink used as a temporary container for assembled war bytes.
 
Methods inherited from class org.apache.pluto.util.assemble.AbstractArchiveAssembler
assemble, performInPlaceAssembly
 
Methods inherited from class org.apache.pluto.util.assemble.WebXmlRewritingAssembler
updateWebappDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EarAssembler

public EarAssembler()
Method Detail

assembleInternal

public void assembleInternal(AssemblerConfig config)
                      throws UtilityException,
                             java.io.IOException
Description copied from class: AbstractArchiveAssembler
Assemble the source file to the destination file. The superclass is responsible for ensuring correct and not-null values for the source and destination, and for temporary file handling used during in-place assembly.

Specified by:
assembleInternal in class AbstractArchiveAssembler
Parameters:
config - the assembler configuration object
Throws:
UtilityException
java.io.IOException

getAssemblySink

protected org.apache.pluto.util.assemble.ear.AssemblySink getAssemblySink(AssemblerConfig config,
                                                                          java.util.jar.JarEntry entry)
                                                                   throws java.io.IOException
Obtain a sink used as a temporary container for assembled war bytes. By default a filesystem based sink is used.

Parameters:
config - the AssemblerConfig
entry - the JarEntry
Returns:
the AssemblySink
Throws:
java.io.IOException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.