org.jboss.system.server.profileservice.repository
Class AbstractBootstrapProfileFactory

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.AbstractBootstrapProfileFactory
Direct Known Subclasses:
StaticProfileFactory

public abstract class AbstractBootstrapProfileFactory
extends Object

The abstract profile factory.

Version:
$Revision: 86174 $
Author:
Emanuel Muckenhuber

Field Summary
protected  org.jboss.logging.Logger log
          The logger
 
Constructor Summary
AbstractBootstrapProfileFactory()
           
 
Method Summary
protected  void addProfile(org.jboss.profileservice.spi.ProfileKey key, org.jboss.profileservice.spi.metadata.ProfileMetaData metaData)
          Add profile meta data.
protected  void addProfiles(org.jboss.profileservice.spi.ProfileKey key, List<org.jboss.profileservice.spi.metadata.ProfileMetaData> metaData)
          Add the profiles meta data, which is basically is a reference to a list of profile meta data.
 void createProfile(Map<org.jboss.profileservice.spi.ProfileKey,org.jboss.profileservice.spi.Profile> profiles, List<org.jboss.profileservice.spi.ProfileKey> subProfiles, org.jboss.profileservice.spi.ProfileKey key, org.jboss.profileservice.spi.metadata.ProfileMetaData profileMetaData)
          Create a Profile with it's sub-profiles.
static org.jboss.profileservice.spi.ProfileKey createProfileKey(org.jboss.profileservice.spi.metadata.ProfileKeyMetaData md)
           
protected abstract  void createProfileMetaData(org.jboss.profileservice.spi.ProfileKey key, URL url)
          Create the meta data required for this profile.
 void createProfiles(Map<org.jboss.profileservice.spi.ProfileKey,org.jboss.profileservice.spi.Profile> profiles, org.jboss.profileservice.spi.ProfileKey key)
          Create profiles
 Collection<org.jboss.profileservice.spi.Profile> createProfiles(org.jboss.profileservice.spi.ProfileKey rootKey, URL url)
          Create the profiles required for this profile.
 AbstractProfileFactory getProfileFactory()
           
 void setProfileFactory(AbstractProfileFactory profileFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.jboss.logging.Logger log
The logger

Constructor Detail

AbstractBootstrapProfileFactory

public AbstractBootstrapProfileFactory()
Method Detail

getProfileFactory

public AbstractProfileFactory getProfileFactory()

setProfileFactory

public void setProfileFactory(AbstractProfileFactory profileFactory)

createProfileMetaData

protected abstract void createProfileMetaData(org.jboss.profileservice.spi.ProfileKey key,
                                              URL url)
                                       throws Exception
Create the meta data required for this profile.

Parameters:
key - the root profile key.
Throws:
Exception

createProfiles

public Collection<org.jboss.profileservice.spi.Profile> createProfiles(org.jboss.profileservice.spi.ProfileKey rootKey,
                                                                       URL url)
                                                                throws Exception
Create the profiles required for this profile.

Parameters:
rootKey - the root profile key.
uri - the profile root uri for parsing.
Returns:
a collection of profiles
Throws:
Exception

createProfiles

public void createProfiles(Map<org.jboss.profileservice.spi.ProfileKey,org.jboss.profileservice.spi.Profile> profiles,
                           org.jboss.profileservice.spi.ProfileKey key)
                    throws Exception
Create profiles

Parameters:
profiles - the profiles map
key - the ProfileKey
Throws:
Exception

createProfile

public void createProfile(Map<org.jboss.profileservice.spi.ProfileKey,org.jboss.profileservice.spi.Profile> profiles,
                          List<org.jboss.profileservice.spi.ProfileKey> subProfiles,
                          org.jboss.profileservice.spi.ProfileKey key,
                          org.jboss.profileservice.spi.metadata.ProfileMetaData profileMetaData)
                   throws Exception
Create a Profile with it's sub-profiles.

Parameters:
profiles - the profiles map
subProfiles - the sub-profiles list
key - the ProfileKey
profileMetaData - the profile meta data
Throws:
Exception

addProfile

protected void addProfile(org.jboss.profileservice.spi.ProfileKey key,
                          org.jboss.profileservice.spi.metadata.ProfileMetaData metaData)
Add profile meta data.

Parameters:
key - the profile key.
metaData - the profile meta data.

addProfiles

protected void addProfiles(org.jboss.profileservice.spi.ProfileKey key,
                           List<org.jboss.profileservice.spi.metadata.ProfileMetaData> metaData)
Add the profiles meta data, which is basically is a reference to a list of profile meta data.

Parameters:
key - the profile key.
metaData - a list of profile meta data.

createProfileKey

public static org.jboss.profileservice.spi.ProfileKey createProfileKey(org.jboss.profileservice.spi.metadata.ProfileKeyMetaData md)


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