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

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

public class DefaultDeploymentRepositoryFactory
extends Object
implements org.jboss.profileservice.spi.DeploymentRepositoryFactory

The default repository factory for immutable and mutable repositories.

Version:
$Revision: 86176 $
Author:
Emanuel Muckenhuber

Field Summary
static String IMMUTABLE_TYPE
          The immutable type.
static String MUTABLE_TYPE
          The mutable type.
static Collection<String> types
          The repository types.
 
Constructor Summary
DefaultDeploymentRepositoryFactory()
           
 
Method Summary
protected  org.jboss.profileservice.spi.DeploymentRepository createDeploymentRepository(boolean mutable, org.jboss.profileservice.spi.ProfileKey key, URI[] uris)
           
 org.jboss.profileservice.spi.DeploymentRepository createDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key, org.jboss.profileservice.spi.metadata.ProfileSourceMetaData metaData)
           
protected  URI[] createUris(org.jboss.profileservice.spi.metadata.ProfileSourceMetaData metaData)
           
 org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker getChecker()
           
 org.jboss.virtual.VirtualFileFilter getDeploymentFilter()
           
 String[] getTypes()
           
 List<URI> getUploadURIs()
           
 boolean isFailIfAlreadyExists()
           
 void setChecker(org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker checker)
           
 void setDeploymentFilter(org.jboss.virtual.VirtualFileFilter deploymentFilter)
           
 void setFailIfAlreadyExists(boolean failIfAlreadyExists)
           
protected  void setUploadURI(BasicDeploymentRepository repository)
          Define a upload uri for a deployment repository.
 void setUploadURIs(List<URI> uploadURIs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MUTABLE_TYPE

public static final String MUTABLE_TYPE
The mutable type.


IMMUTABLE_TYPE

public static final String IMMUTABLE_TYPE
The immutable type.


types

public static final Collection<String> types
The repository types.

Constructor Detail

DefaultDeploymentRepositoryFactory

public DefaultDeploymentRepositoryFactory()
Method Detail

getTypes

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

getDeploymentFilter

public org.jboss.virtual.VirtualFileFilter getDeploymentFilter()

setDeploymentFilter

public void setDeploymentFilter(org.jboss.virtual.VirtualFileFilter deploymentFilter)

isFailIfAlreadyExists

public boolean isFailIfAlreadyExists()

setFailIfAlreadyExists

public void setFailIfAlreadyExists(boolean failIfAlreadyExists)

getUploadURIs

public List<URI> getUploadURIs()

setUploadURIs

public void setUploadURIs(List<URI> uploadURIs)

getChecker

public org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker getChecker()

setChecker

public void setChecker(org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker checker)

createDeploymentRepository

public org.jboss.profileservice.spi.DeploymentRepository createDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key,
                                                                                    org.jboss.profileservice.spi.metadata.ProfileSourceMetaData metaData)
                                                                             throws Exception
Specified by:
createDeploymentRepository in interface org.jboss.profileservice.spi.DeploymentRepositoryFactory
Throws:
Exception

createDeploymentRepository

protected org.jboss.profileservice.spi.DeploymentRepository createDeploymentRepository(boolean mutable,
                                                                                       org.jboss.profileservice.spi.ProfileKey key,
                                                                                       URI[] uris)
                                                                                throws Exception
Throws:
Exception

setUploadURI

protected void setUploadURI(BasicDeploymentRepository repository)
Define a upload uri for a deployment repository.

Parameters:
repository - the deployment repository

createUris

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


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