org.jboss.deployment.cache
Interface DeploymentStore

All Known Implementing Classes:
FileDeploymentStore (src)

public interface DeploymentStore

Provides the interface for abstracting the actual storage of cached deployments.


Method Summary
 java.net.URL get(java.net.URL url)
          Get the stored URL for the given deployment URL.
 java.net.URL put(java.net.URL url)
          Put a deployment URL into storage.
 

Method Detail

get

public java.net.URL get(java.net.URL url)
                 throws java.lang.Exception
Get the stored URL for the given deployment URL.

Parameters:
url - The original deployment URL.
Returns:
The stored URL or null if not stored.
Throws:
java.lang.Exception - Failed to get deployment URL from the store.

put

public java.net.URL put(java.net.URL url)
                 throws java.lang.Exception
Put a deployment URL into storage. This will cause the data associated with the given URL to be downloaded.

If there is already a stored URL it will be overwritten.

Parameters:
url - The original deployment URL.
Returns:
The stored URL.
Throws:
java.lang.Exception - Failed to put deployment URL into the store.