org.jboss.system.server.profileservice.repository
Class StaticProfileFactory
java.lang.Object
org.jboss.system.server.profileservice.repository.AbstractBootstrapProfileFactory
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticProfileFactory
public StaticProfileFactory()
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 repositoryisHotDeployment
- to create a hotDeployment profile
- Returns:
- the profile source meta data.
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.