org.jboss.profileservice.spi
Interface MutableProfile

All Superinterfaces:
Profile

public interface MutableProfile
extends Profile

A mutable profile.

Version:
$Revision$
Author:
Emanuel Muckenhuber

Method Summary
 void addDeployment(ProfileDeployment deployment)
          Add a deployment.
 void enableModifiedDeploymentChecks(boolean flag)
          Enable/disable the getModifiedDeployments results.
 Collection<ModificationInfo> getModifiedDeployments()
          Get the deployments that have been modified since the last check.
 ProfileDeployment removeDeployment(String name)
          Remove a deployment.
 
Methods inherited from interface org.jboss.profileservice.spi.Profile
getDeployment, getDeploymentNames, getDeployments, getKey, getLastModified, getSubProfiles, hasDeployment, isMutable
 

Method Detail

addDeployment

void addDeployment(ProfileDeployment deployment)
                   throws Exception
Add a deployment.

Parameters:
deployment - the deployment
Throws:
Exception - for any error

removeDeployment

ProfileDeployment removeDeployment(String name)
                                   throws NoSuchDeploymentException,
                                          Exception
Remove a deployment.

Parameters:
name - the deployment name
Returns:
the DeploymentContext for the name if found
Throws:
NoSuchDeploymentException - if the deployment was not found
Exception - for any error

getModifiedDeployments

Collection<ModificationInfo> getModifiedDeployments()
                                                    throws Exception
Get the deployments that have been modified since the last check.

Returns:
the modified deployments, empty if none exist
Throws:
Exception - - thrown on error scanning for deployments

enableModifiedDeploymentChecks

void enableModifiedDeploymentChecks(boolean flag)
Enable/disable the getModifiedDeployments results. This can be used to disable the getModifiedDeployments results during periods such as bootstrap where changes should be delayed.

Parameters:
flag - - the enable/disable flag
See Also:
getModifiedDeployments()


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.