org.jboss.system.server.profile.repository
Class AbstractImmutableProfile

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
      extended by org.jboss.system.server.profile.repository.AbstractImmutableProfile
All Implemented Interfaces:
org.jboss.profileservice.spi.Profile

public class AbstractImmutableProfile
extends AbstractVFSProfileSource
implements org.jboss.profileservice.spi.Profile

A immutable vfs based profile.

Version:
$Revision: 86174 $
Author:
Emanuel Muckenhuber

Field Summary
 
Fields inherited from class org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
log, uris
 
Constructor Summary
AbstractImmutableProfile(org.jboss.profileservice.spi.ProfileKey key, URI[] uris)
           
AbstractImmutableProfile(org.jboss.profileservice.spi.ProfileKey key, URI[] uris, List<org.jboss.profileservice.spi.ProfileKey> subprofiles)
           
 
Method Summary
 void create()
           
 org.jboss.profileservice.spi.ProfileDeployment getDeployment(String vfsPath)
          Get the deployment
 org.jboss.profileservice.spi.ProfileKey getKey()
           
 Collection<org.jboss.profileservice.spi.ProfileKey> getSubProfiles()
           
 boolean hasDeployment(String name)
           
 boolean isMutable()
           
 void setSubProfiles(List<org.jboss.profileservice.spi.ProfileKey> subProfiles)
           
 String toString()
           
protected  void toString(StringBuilder builder)
          Additional information for toString().
 
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
acceptsDeployment, addDeployment, addedDeployment, addedDeployments, addVirtualFileCache, createDeployment, destroy, findDeploymentContent, getCachedVirtualFile, getCachedVirtualFile, getDeploymentFilter, getDeploymentNames, getDeployments, getLastModified, getRepositoryURIs, isRecursiveScan, loadApplications, removeDeployment, setDeploymentFilter, setRecursiveScan, updateLastModfied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.profileservice.spi.Profile
getDeploymentNames, getDeployments, getLastModified
 

Constructor Detail

AbstractImmutableProfile

public AbstractImmutableProfile(org.jboss.profileservice.spi.ProfileKey key,
                                URI[] uris)

AbstractImmutableProfile

public AbstractImmutableProfile(org.jboss.profileservice.spi.ProfileKey key,
                                URI[] uris,
                                List<org.jboss.profileservice.spi.ProfileKey> subprofiles)
Method Detail

create

public void create()
            throws Exception
Throws:
Exception

getKey

public org.jboss.profileservice.spi.ProfileKey getKey()
Specified by:
getKey in interface org.jboss.profileservice.spi.Profile

getSubProfiles

public Collection<org.jboss.profileservice.spi.ProfileKey> getSubProfiles()
Specified by:
getSubProfiles in interface org.jboss.profileservice.spi.Profile

setSubProfiles

public void setSubProfiles(List<org.jboss.profileservice.spi.ProfileKey> subProfiles)

getDeployment

public org.jboss.profileservice.spi.ProfileDeployment getDeployment(String vfsPath)
                                                             throws org.jboss.profileservice.spi.NoSuchDeploymentException
Description copied from class: AbstractVFSProfileSource
Get the deployment

Specified by:
getDeployment in interface org.jboss.profileservice.spi.Profile
Overrides:
getDeployment in class AbstractVFSProfileSource
Parameters:
vfsPath - the deployment
Returns:
the deployment or null if it does not exist
Throws:
org.jboss.profileservice.spi.NoSuchDeploymentException

hasDeployment

public boolean hasDeployment(String name)
Specified by:
hasDeployment in interface org.jboss.profileservice.spi.Profile

isMutable

public boolean isMutable()
Specified by:
isMutable in interface org.jboss.profileservice.spi.Profile

toString

public String toString()
Overrides:
toString in class Object

toString

protected void toString(StringBuilder builder)
Additional information for toString().

Parameters:
builder - the builder.


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