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

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.TypedProfileRepository
All Implemented Interfaces:
org.jboss.profileservice.spi.ProfileRepository

public class TypedProfileRepository
extends Object
implements org.jboss.profileservice.spi.ProfileRepository

The profile repository. This accepts any implementation of DeploymentRepositoryFactory and delegates the creation of the repository to one of the installed factories, based on the exposed types. TODO reuse DeploymentRepositories with the same sources ?

Version:
$Revision: 87161 $
Author:
Emanuel Muckenhuber

Constructor Summary
TypedProfileRepository()
           
 
Method Summary
 void addRepositoryFactory(org.jboss.profileservice.spi.DeploymentRepositoryFactory factory)
           
 org.jboss.profileservice.spi.DeploymentRepository createProfileDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key, org.jboss.profileservice.spi.metadata.ProfileMetaData metaData)
           
protected  org.jboss.profileservice.spi.DeploymentRepository createProfileDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key, String repositoryType, org.jboss.profileservice.spi.metadata.ProfileSourceMetaData metaData)
           
 org.jboss.profileservice.spi.DeploymentRepository getProfileDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key)
           
 Collection<org.jboss.profileservice.spi.ProfileKey> getProfileKeys()
           
 void removeProfileDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key)
           
 void removeRepositoryFactory(org.jboss.profileservice.spi.DeploymentRepositoryFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypedProfileRepository

public TypedProfileRepository()
Method Detail

getProfileKeys

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

getProfileDeploymentRepository

public org.jboss.profileservice.spi.DeploymentRepository getProfileDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key)
                                                                                 throws org.jboss.profileservice.spi.NoSuchProfileException
Specified by:
getProfileDeploymentRepository in interface org.jboss.profileservice.spi.ProfileRepository
Throws:
org.jboss.profileservice.spi.NoSuchProfileException

createProfileDeploymentRepository

public org.jboss.profileservice.spi.DeploymentRepository createProfileDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key,
                                                                                           org.jboss.profileservice.spi.metadata.ProfileMetaData metaData)
                                                                                    throws Exception
Specified by:
createProfileDeploymentRepository in interface org.jboss.profileservice.spi.ProfileRepository
Throws:
Exception

createProfileDeploymentRepository

protected org.jboss.profileservice.spi.DeploymentRepository createProfileDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key,
                                                                                              String repositoryType,
                                                                                              org.jboss.profileservice.spi.metadata.ProfileSourceMetaData metaData)
                                                                                       throws Exception
Throws:
Exception

removeProfileDeploymentRepository

public void removeProfileDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key)
                                       throws Exception,
                                              org.jboss.profileservice.spi.NoSuchProfileException
Specified by:
removeProfileDeploymentRepository in interface org.jboss.profileservice.spi.ProfileRepository
Throws:
Exception
org.jboss.profileservice.spi.NoSuchProfileException

addRepositoryFactory

public void addRepositoryFactory(org.jboss.profileservice.spi.DeploymentRepositoryFactory factory)

removeRepositoryFactory

public void removeRepositoryFactory(org.jboss.profileservice.spi.DeploymentRepositoryFactory factory)


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