org.jboss.profileservice.spi
Interface Profile

All Known Subinterfaces:
MutableProfile

public interface Profile

A profile represents a named collection of deployments on a server.

Version:
$Revision$
Author:
Scott.Stark@jboss.org, adrian@jboss.org, Emanuel Muckenhuber

Method Summary
 ProfileDeployment getDeployment(String name)
          Get a named deployment.
 Set<String> getDeploymentNames()
          Get the names of the deployments in the profile.
 Collection<ProfileDeployment> getDeployments()
          Get all deployments defined in this profile
 ProfileKey getKey()
          Get the key used to create the Profile
 long getLastModified()
          Get the system time in milliseconds the profile was last modified.
 Collection<ProfileKey> getSubProfiles()
          Get the profile dependencies.
 boolean hasDeployment(String name)
          Checks whether a deployment context is available in this profile.
 boolean isMutable()
          Flag indicating if the the profile is mutable and implements the MutableProfile interface.
 

Method Detail

getKey

ProfileKey getKey()
Get the key used to create the Profile

Returns:
key used to create the Profile

getLastModified

long getLastModified()
Get the system time in milliseconds the profile was last modified.

Returns:
System.currentTimeMillis of last modification

getSubProfiles

Collection<ProfileKey> getSubProfiles()
Get the profile dependencies.

Returns:
the collection of profile keys.

getDeploymentNames

Set<String> getDeploymentNames()
Get the names of the deployments in the profile.

Returns:
names of deployments

getDeployment

ProfileDeployment getDeployment(String name)
                                throws NoSuchDeploymentException
Get a named deployment.

Parameters:
name - - the deployment name
Returns:
the deployment
Throws:
NoSuchDeploymentException - - if there is no such bootstrap

getDeployments

Collection<ProfileDeployment> getDeployments()
Get all deployments defined in this profile

Returns:
the deployment instances in this profile.

hasDeployment

boolean hasDeployment(String name)
Checks whether a deployment context is available in this profile.

Parameters:
name - the name of the deployment
Returns:
true if the deployment is found or false otherwise

isMutable

boolean isMutable()
Flag indicating if the the profile is mutable and implements the MutableProfile interface.

Returns:
true, if the profile is mutable


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