Package org.jboss.as.ejb3.deployment
Class DeploymentRepositoryService
- java.lang.Object
-
- org.jboss.as.ejb3.deployment.DeploymentRepositoryService
-
- All Implemented Interfaces:
DeploymentRepository,org.jboss.msc.Service,org.jboss.msc.service.Service<DeploymentRepository>,org.jboss.msc.value.Value<DeploymentRepository>
public class DeploymentRepositoryService extends Object implements DeploymentRepository, org.jboss.msc.service.Service<DeploymentRepository>
Repository for information about deployed modules. This includes information on all the deployed Jakarta Enterprise Beans's in the module- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description DeploymentRepositoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(DeploymentModuleIdentifier identifier, ModuleDeployment deployment)voidaddListener(DeploymentRepositoryListener listener)Map<DeploymentModuleIdentifier,ModuleDeployment>getModules()Returns all deployments.Map<DeploymentModuleIdentifier,ModuleDeployment>getStartedModules()Returns all deployments that are in a started state, i.e.DeploymentRepositorygetValue()booleanisSuspended()voidremove(DeploymentModuleIdentifier identifier)voidremoveListener(DeploymentRepositoryListener listener)voidresume()voidstart(org.jboss.msc.service.StartContext context)booleanstartDeployment(DeploymentModuleIdentifier identifier)voidstop(org.jboss.msc.service.StopContext context)voidsuspend()
-
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<DeploymentRepository>- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<DeploymentRepository>
-
getValue
public DeploymentRepository getValue()
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<DeploymentRepository>
-
add
public void add(DeploymentModuleIdentifier identifier, ModuleDeployment deployment)
- Specified by:
addin interfaceDeploymentRepository
-
startDeployment
public boolean startDeployment(DeploymentModuleIdentifier identifier)
- Specified by:
startDeploymentin interfaceDeploymentRepository
-
addListener
public void addListener(DeploymentRepositoryListener listener)
- Specified by:
addListenerin interfaceDeploymentRepository
-
removeListener
public void removeListener(DeploymentRepositoryListener listener)
- Specified by:
removeListenerin interfaceDeploymentRepository
-
remove
public void remove(DeploymentModuleIdentifier identifier)
- Specified by:
removein interfaceDeploymentRepository
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspendedin interfaceDeploymentRepository
-
suspend
public void suspend()
- Specified by:
suspendin interfaceDeploymentRepository
-
resume
public void resume()
- Specified by:
resumein interfaceDeploymentRepository
-
getModules
public Map<DeploymentModuleIdentifier,ModuleDeployment> getModules()
Description copied from interface:DeploymentRepositoryReturns all deployments. These deployments may not be in a started state, i.e. not all components might be ready to receive invocations.- Specified by:
getModulesin interfaceDeploymentRepository- Returns:
- all deployments
-
getStartedModules
public Map<DeploymentModuleIdentifier,ModuleDeployment> getStartedModules()
Description copied from interface:DeploymentRepositoryReturns all deployments that are in a started state, i.e. all components are ready to receive invocations.- Specified by:
getStartedModulesin interfaceDeploymentRepository- Returns:
- all started deployments
-
-