|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.server.profileservice.repository.AbstractProfileService
public class AbstractProfileService
The ProfileService.
Field Summary | |
---|---|
static org.jboss.dependency.spi.ControllerState |
DEPLOY_STATE
The deploy state |
Constructor Summary | |
---|---|
AbstractProfileService(org.jboss.dependency.plugins.AbstractController controller)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.jboss.dependency.spi.ControllerState DEPLOY_STATE
Constructor Detail |
---|
public AbstractProfileService(org.jboss.dependency.plugins.AbstractController controller)
Method Detail |
---|
public org.jboss.profileservice.spi.ProfileKey getDefaultProfile()
public void setDefaultProfile(org.jboss.profileservice.spi.ProfileKey defaultProfile)
public MainDeployerAdapter getDeployer()
public void setDeployer(MainDeployerAdapter deployer)
public org.jboss.deployers.spi.management.deploy.DeploymentManager getDeploymentManager()
getDeploymentManager
in interface org.jboss.profileservice.spi.ProfileService
public void setDeploymentManager(org.jboss.deployers.spi.management.deploy.DeploymentManager deploymentManager)
public org.jboss.deployers.spi.management.ManagementView getViewManager()
getViewManager
in interface org.jboss.profileservice.spi.ProfileService
public void setViewManager(org.jboss.deployers.spi.management.ManagementView managementView)
public String[] getDomains()
getDomains
in interface org.jboss.profileservice.spi.ProfileService
public String[] getProfileDeploymentNames(org.jboss.profileservice.spi.ProfileKey key) throws org.jboss.profileservice.spi.NoSuchProfileException
org.jboss.profileservice.spi.NoSuchProfileException
public Collection<org.jboss.profileservice.spi.ProfileKey> getProfileKeys()
getProfileKeys
in interface org.jboss.profileservice.spi.ProfileService
public org.jboss.profileservice.spi.Profile getProfile(org.jboss.profileservice.spi.ProfileKey key) throws org.jboss.profileservice.spi.NoSuchProfileException
getProfile
in interface org.jboss.profileservice.spi.ProfileService
key
- - the key for the profile
org.jboss.profileservice.spi.NoSuchProfileException
- if there is no such profile registered.public Collection<org.jboss.profileservice.spi.ProfileKey> getActiveProfileKeys()
getActiveProfileKeys
in interface org.jboss.profileservice.spi.ProfileService
public org.jboss.profileservice.spi.Profile getActiveProfile(org.jboss.profileservice.spi.ProfileKey key) throws org.jboss.profileservice.spi.NoSuchProfileException
getActiveProfile
in interface org.jboss.profileservice.spi.ProfileService
key
- - the key for the profile
org.jboss.profileservice.spi.NoSuchProfileException
- if there is no such profile active.public void create() throws Exception
Exception
public void destroy()
public void registerProfile(org.jboss.profileservice.spi.Profile profile) throws Exception
registerProfile
in interface org.jboss.profileservice.spi.ProfileService
profile
- the profile.
Exception
public void activateProfile(org.jboss.profileservice.spi.ProfileKey key) throws Exception
activateProfile
in interface org.jboss.profileservice.spi.ProfileService
key
- the profile key.
org.jboss.profileservice.spi.NoSuchProfileException
- if there is no such profile registered.
Exception
public void validateProfile(org.jboss.profileservice.spi.ProfileKey key) throws Exception
validateProfile
in interface org.jboss.profileservice.spi.ProfileService
Exception
protected void validate(org.jboss.dependency.spi.ControllerContext context) throws Exception
context
- the context to validate
Exception
public void install(org.jboss.dependency.spi.ControllerContext context, org.jboss.dependency.spi.ControllerState fromState, org.jboss.dependency.spi.ControllerState toState) throws Throwable
install
in interface org.jboss.dependency.spi.ControllerContextActions
Throwable
public void uninstall(org.jboss.dependency.spi.ControllerContext context, org.jboss.dependency.spi.ControllerState fromState, org.jboss.dependency.spi.ControllerState toState)
uninstall
in interface org.jboss.dependency.spi.ControllerContextActions
public void deactivateProfile(org.jboss.profileservice.spi.ProfileKey key) throws org.jboss.profileservice.spi.NoSuchProfileException
deactivateProfile
in interface org.jboss.profileservice.spi.ProfileService
key
- the profile key.
org.jboss.profileservice.spi.NoSuchProfileException
- if the profile is not active.public void unregisterProfile(org.jboss.profileservice.spi.ProfileKey key) throws org.jboss.profileservice.spi.NoSuchProfileException
unregisterProfile
in interface org.jboss.profileservice.spi.ProfileService
key
- the profile key
org.jboss.profileservice.spi.NoSuchProfileException
- if the profile is not registered.public void unregisterProfile(org.jboss.profileservice.spi.Profile profile) throws org.jboss.profileservice.spi.NoSuchProfileException
profile
-
org.jboss.profileservice.spi.NoSuchProfileException
- if the profile is not registered.protected void internalValidateContext(org.jboss.dependency.spi.ControllerContext ctx, Set<String> errors, Map<Object,String> incomplete)
ctx
- the context to validateerrors
- a set of errorsincomplete
- a set of incomplete contextsprotected void logErrors(Set<String> errors, Collection<String> incomplete) throws Exception
errors
- a set of errorsincomplete
- a set of missing dependencies
Exception
- in case there are errors or missing dependencies
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |