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

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.AbstractProfileFactory
      extended by org.jboss.system.server.profileservice.repository.FilteredProfileFactory
All Implemented Interfaces:
org.jboss.profileservice.spi.ProfileFactory

public class FilteredProfileFactory
extends AbstractProfileFactory
implements org.jboss.profileservice.spi.ProfileFactory

A filtered profile factory. This should create a profile based on the deployments defined in the meta data. Currently this only creates a immutable profile, based on it's source.

Version:
$Revision$
Author:
Emanuel Muckenhuber
See Also:
{org.jboss.test.server.profileservice.support.FilteredProfileFactory}

Field Summary
static Collection<String> types
          The profile meta data types.
 
Constructor Summary
FilteredProfileFactory()
           
 
Method Summary
 org.jboss.profileservice.spi.Profile createProfile(org.jboss.profileservice.spi.ProfileKey key, org.jboss.profileservice.spi.metadata.ProfileMetaData metaData, List<org.jboss.profileservice.spi.ProfileKey> subProfiles)
          This is used by the BoostrapProfileFactory, as it already created the subProfiles list.
protected  URI[] createURIs(org.jboss.profileservice.spi.metadata.ProfileMetaData metaData)
           
 String[] getTypes()
           
 
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractProfileFactory
createKey, createProfile, createSubProfiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.profileservice.spi.ProfileFactory
createProfile
 

Field Detail

types

public static final Collection<String> types
The profile meta data types.

Constructor Detail

FilteredProfileFactory

public FilteredProfileFactory()
Method Detail

getTypes

public String[] getTypes()
Specified by:
getTypes in interface org.jboss.profileservice.spi.ProfileFactory

createProfile

public org.jboss.profileservice.spi.Profile createProfile(org.jboss.profileservice.spi.ProfileKey key,
                                                          org.jboss.profileservice.spi.metadata.ProfileMetaData metaData,
                                                          List<org.jboss.profileservice.spi.ProfileKey> subProfiles)
                                                   throws URISyntaxException
Description copied from class: AbstractProfileFactory
This is used by the BoostrapProfileFactory, as it already created the subProfiles list.

Specified by:
createProfile in class AbstractProfileFactory
Parameters:
key - the profile key
metaData - the profile meta data
subProfiles - the sub profiles list
Returns:
the profile
Throws:
URISyntaxException

createURIs

protected URI[] createURIs(org.jboss.profileservice.spi.metadata.ProfileMetaData metaData)
                    throws URISyntaxException
Throws:
URISyntaxException


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