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

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

public class StaticProfileFactory
extends AbstractBootstrapProfileFactory

A profile factory based on a static configuration. This creates the legacy configuration: bootstrap, deployers, applications and the root profile.

Version:
$Revision: 88109 $
Author:
Emanuel Muckenhuber

Field Summary
 
Fields inherited from class org.jboss.system.server.profileservice.repository.AbstractBootstrapProfileFactory
log
 
Constructor Summary
StaticProfileFactory()
           
 
Method Summary
 void create()
           
protected  String createApplicationProfile(String[] applicationsSubProfiles)
          Create the applications sub profile.
protected  String[] createApplicationProfiles(String[] applicationsSubProfiles)
          Create the application sub profiles.
protected  void createProfileMetaData(org.jboss.profileservice.spi.ProfileKey rootKey, URL url)
          Create the legacy profiles, based on the injected uris.
protected  org.jboss.profileservice.spi.metadata.ProfileMetaData createProfileMetaData(String name, boolean isHotDeployment, URI[] uris, String[] subProfiles)
          Create a basic profile meta data.
protected  org.jboss.profileservice.spi.metadata.ProfileSourceMetaData createSource(URI[] uris, boolean isHotDeployment)
          Create a profile repository source meta data.
protected  List<org.jboss.profileservice.spi.metadata.SubProfileMetaData> createSubProfileMetaData(String[] subProfiles)
           
 String getApplicationsName()
           
 List<URI> getApplicationURIs()
           
 File getAttachmentStoreRoot()
           
 URI getBindingsURI()
           
 String getBootstrapName()
           
 URI getBootstrapURI()
           
 String getDeployersName()
           
 URI getDeployersURI()
           
 void setApplicationsName(String applicationsName)
           
 void setApplicationURIs(List<URI> applicationURIs)
           
 void setAttachmentStoreRoot(File attachmentStoreRoot)
           
 void setBindingsURI(URI bindingsURI)
           
 void setBootstrapName(String bootstrapName)
           
 void setBootstrapURI(URI bootstrapURI)
           
 void setDeployersName(String deployersName)
           
 void setDeployersURI(URI deployersURI)
           
 
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractBootstrapProfileFactory
addProfile, addProfiles, createProfile, createProfileKey, createProfiles, createProfiles, getProfileFactory, setProfileFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticProfileFactory

public StaticProfileFactory()
Method Detail

getBootstrapName

public String getBootstrapName()

setBootstrapName

public void setBootstrapName(String bootstrapName)

getDeployersName

public String getDeployersName()

setDeployersName

public void setDeployersName(String deployersName)

getApplicationsName

public String getApplicationsName()

setApplicationsName

public void setApplicationsName(String applicationsName)

getBindingsURI

public URI getBindingsURI()

setBindingsURI

public void setBindingsURI(URI bindingsURI)

getBootstrapURI

public URI getBootstrapURI()

setBootstrapURI

public void setBootstrapURI(URI bootstrapURI)

getDeployersURI

public URI getDeployersURI()

setDeployersURI

public void setDeployersURI(URI deployersURI)

getAttachmentStoreRoot

public File getAttachmentStoreRoot()

setAttachmentStoreRoot

public void setAttachmentStoreRoot(File attachmentStoreRoot)

getApplicationURIs

public List<URI> getApplicationURIs()

setApplicationURIs

public void setApplicationURIs(List<URI> applicationURIs)

create

public void create()
            throws Exception
Throws:
Exception

createProfileMetaData

protected void createProfileMetaData(org.jboss.profileservice.spi.ProfileKey rootKey,
                                     URL url)
                              throws Exception
Create the legacy profiles, based on the injected uris.

Specified by:
createProfileMetaData in class AbstractBootstrapProfileFactory
Parameters:
rootKey - the key for the root profile.
Throws:
Exception

createApplicationProfiles

protected String[] createApplicationProfiles(String[] applicationsSubProfiles)
Create the application sub profiles.

Parameters:
applicationsSubProfiles -
Returns:
the dependencies for the root profile

createApplicationProfile

protected String createApplicationProfile(String[] applicationsSubProfiles)
Create the applications sub profile.

Parameters:
applicationsSubProfiles - the dependencies for the application profile
Returns:
the application profile name

createProfileMetaData

protected org.jboss.profileservice.spi.metadata.ProfileMetaData createProfileMetaData(String name,
                                                                                      boolean isHotDeployment,
                                                                                      URI[] uris,
                                                                                      String[] subProfiles)
Create a basic profile meta data. This profile will have it's own DeploymentRepository and therefore exposed in the DeploymentManager for deploy actions.

Parameters:
name - the profile name.
isHotDeployment - if hotDeployment is enabled.
uris - the repository uris.
subProfiles - a list of profile dependencies.
Returns:
the profile meta data.

createSubProfileMetaData

protected List<org.jboss.profileservice.spi.metadata.SubProfileMetaData> createSubProfileMetaData(String[] subProfiles)

createSource

protected org.jboss.profileservice.spi.metadata.ProfileSourceMetaData createSource(URI[] uris,
                                                                                   boolean isHotDeployment)
Create a profile repository source meta data.

Parameters:
uris - the uris for the repository
isHotDeployment - to create a hotDeployment profile
Returns:
the profile source meta data.


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