Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdeveloper.deploy
Interface DeploymentModuleIO


public interface DeploymentModuleIO

Handles the I/O for a Deployment Module.


Method Summary
 void commit()
          Updates the archive, creating it if required.
 java.io.InputStream getInputStream(ArchiveEntry entry)
          Return an input stream that can be used to read the contents of an ArchiveEntry.
 java.io.OutputStream getOutputStream(ArchiveEntry entry)
          Return an output stream that can be used to update an ArchiveEntry.
 java.net.URL getURL()
          Returns the URL this IO is managing.
 void load()
          Load a DeploymentModule with information found at moduleIO.getURL()
 void load(java.net.URL url)
          Load an Archive from URL.
 void release()
           
 void rollback()
           
 void setArchive(DeploymentModule archive)
          Sets the archive this Module I/O class should operate on.
 void setURL(java.net.URL url)
          Only possible on a committed module.
 

Method Detail

setArchive

void setArchive(DeploymentModule archive)
                throws java.io.IOException
Sets the archive this Module I/O class should operate on. The Module should rollback any txns on existing Archive before setting the new one. If no Archive is currently set, this is a NO-OP.

Parameters:
archive - the Archive to set. Can be null.
Throws:
java.io.IOException - if the rollback did not succeed.

getURL

java.net.URL getURL()
Returns the URL this IO is managing.


setURL

void setURL(java.net.URL url)
Only possible on a committed module.


load

void load()
          throws java.io.IOException
Load a DeploymentModule with information found at moduleIO.getURL()

Parameters:
module - the DeploymentModule that should be refreshed. Any uncommitted changes will be rolled back, and the state set to COMMITTED.
Throws:
java.io.IOException

load

void load(java.net.URL url)
          throws java.io.IOException
Load an Archive from URL.

Parameters:
module -
url -
Throws:
java.io.IOException

getOutputStream

java.io.OutputStream getOutputStream(ArchiveEntry entry)
                                     throws java.io.IOException
Return an output stream that can be used to update an ArchiveEntry. The entry is updated when the stream is closed. The DeploymentModule may not be updated until a module.commit() is issued.

Parameters:
module -
entry -
Returns:
Throws:
java.io.IOException - if the DeploymentModule is read-only.

getInputStream

java.io.InputStream getInputStream(ArchiveEntry entry)
                                   throws java.io.IOException
Return an input stream that can be used to read the contents of an ArchiveEntry.

Parameters:
module -
entry -
Returns:
Throws:
java.io.IOException - if an InputStream could not be returned.

commit

void commit()
            throws java.io.IOException
Updates the archive, creating it if required. Only OutputStream(s) that have been closed will be written, else discarded.

Parameters:
module -
Throws:
DeployException
java.io.IOException

rollback

void rollback()
              throws java.io.IOException
Throws:
java.io.IOException

release

void release()
             throws java.io.IOException
Throws:
java.io.IOException

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.