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

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

public class NoopProfile
extends Object
implements org.jboss.profileservice.spi.Profile

A empty profile, which does not contain any deployments. This profile basically just has a key and dependencies on other profiles.

Version:
$Revision$
Author:
Emanuel Muckenhuber

Constructor Summary
NoopProfile(org.jboss.profileservice.spi.ProfileKey key)
           
NoopProfile(org.jboss.profileservice.spi.ProfileKey key, List<org.jboss.profileservice.spi.ProfileKey> subProfiles)
           
 
Method Summary
 org.jboss.profileservice.spi.ProfileDeployment getDeployment(String name)
           
 Set<String> getDeploymentNames()
           
 Collection<org.jboss.profileservice.spi.ProfileDeployment> getDeployments()
           
 org.jboss.profileservice.spi.ProfileKey getKey()
           
 long getLastModified()
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoopProfile

public NoopProfile(org.jboss.profileservice.spi.ProfileKey key)

NoopProfile

public NoopProfile(org.jboss.profileservice.spi.ProfileKey key,
                   List<org.jboss.profileservice.spi.ProfileKey> subProfiles)
Method Detail

getKey

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

getLastModified

public long getLastModified()
Specified by:
getLastModified 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)

getDeploymentNames

public Set<String> getDeploymentNames()
Specified by:
getDeploymentNames in interface org.jboss.profileservice.spi.Profile

getDeployments

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

getDeployment

public org.jboss.profileservice.spi.ProfileDeployment getDeployment(String name)
                                                             throws org.jboss.profileservice.spi.NoSuchDeploymentException
Specified by:
getDeployment in interface org.jboss.profileservice.spi.Profile
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.