jBPM Console NG - Business Domain Backend 6.0.0.CR4-Pre1

org.jbpm.console.ng.bd.backend.server
Class DeploymentManagerEntryPointImpl

java.lang.Object
  extended by org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl
All Implemented Interfaces:
org.guvnor.common.services.project.builder.service.PostBuildHandler, DeploymentManagerEntryPoint, Initializable<org.jbpm.kie.services.api.DeploymentUnit>

@ApplicationScoped
public class DeploymentManagerEntryPointImpl
extends Object
implements DeploymentManagerEntryPoint, Initializable<org.jbpm.kie.services.api.DeploymentUnit>, org.guvnor.common.services.project.builder.service.PostBuildHandler


Constructor Summary
DeploymentManagerEntryPointImpl()
           
 
Method Summary
protected  void cleanup(String identifier)
           
 void configure()
           
protected  void deploy(org.jbpm.kie.services.api.DeploymentUnit unit)
           
 void deploy(DeploymentUnitSummary unitSummary)
           
 void deployOnEvent(org.uberfire.backend.server.deployment.DeploymentConfigChangedEvent event)
          Reacts on events fired based on changes to system repository - important in cluster environment where system repo will be synchronized
 List<KModuleDeploymentUnitSummary> getDeploymentUnits()
           
 void initDeployments(Set<org.jbpm.kie.services.api.DeploymentUnit> deploymentUnits)
           
 void process(org.guvnor.common.services.project.builder.model.BuildResults buildResults)
          Auto deployed is called from authoring environment after successful build and deploy (to maven)
 void redeploy()
           
 void removeDeployment(org.jbpm.kie.services.impl.event.DeploymentEvent event)
          Reacts on events fired by deployment service upon successful undeployment from runtime environment so that can be stored in system repository
 void saveDeployment(org.jbpm.kie.services.impl.event.DeploymentEvent event)
          Reacts on events fired by deployment service upon successful deployment to runtime environment so that can be stored in system repository
protected  void undeploy(org.jbpm.kie.services.api.DeploymentUnit unit)
           
 void undeploy(DeploymentUnitSummary unitSummary)
           
 void undeployOnEvent(org.uberfire.backend.server.deployment.DeploymentConfigChangedEvent event)
          Reacts on events fired based on changes to system repository - important in cluster environment where system repo will be synchronized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentManagerEntryPointImpl

public DeploymentManagerEntryPointImpl()
Method Detail

configure

@PostConstruct
public void configure()

initDeployments

public void initDeployments(Set<org.jbpm.kie.services.api.DeploymentUnit> deploymentUnits)
Specified by:
initDeployments in interface Initializable<org.jbpm.kie.services.api.DeploymentUnit>

deploy

public void deploy(DeploymentUnitSummary unitSummary)
Specified by:
deploy in interface DeploymentManagerEntryPoint

deploy

protected void deploy(org.jbpm.kie.services.api.DeploymentUnit unit)

undeploy

public void undeploy(DeploymentUnitSummary unitSummary)
Specified by:
undeploy in interface DeploymentManagerEntryPoint

undeploy

protected void undeploy(org.jbpm.kie.services.api.DeploymentUnit unit)

redeploy

public void redeploy()
Specified by:
redeploy in interface DeploymentManagerEntryPoint

cleanup

protected void cleanup(String identifier)

getDeploymentUnits

public List<KModuleDeploymentUnitSummary> getDeploymentUnits()
Specified by:
getDeploymentUnits in interface DeploymentManagerEntryPoint

saveDeployment

public void saveDeployment(@Observes
                           org.jbpm.kie.services.impl.event.DeploymentEvent event)
Reacts on events fired by deployment service upon successful deployment to runtime environment so that can be stored in system repository

Parameters:
event - deploymentEvent that holds all required information from runtime point of view

removeDeployment

public void removeDeployment(@Observes
                             org.jbpm.kie.services.impl.event.DeploymentEvent event)
Reacts on events fired by deployment service upon successful undeployment from runtime environment so that can be stored in system repository

Parameters:
event - deploymentEvent that holds all required information from runtime point of view

process

public void process(org.guvnor.common.services.project.builder.model.BuildResults buildResults)
Auto deployed is called from authoring environment after successful build and deploy (to maven)

Specified by:
process in interface org.guvnor.common.services.project.builder.service.PostBuildHandler
Parameters:
buildResults - Maven deploy result that holds GAV to construct KModuleDeploymentUnit

undeployOnEvent

public void undeployOnEvent(@Observes
                            org.uberfire.backend.server.deployment.DeploymentConfigChangedEvent event)
Reacts on events fired based on changes to system repository - important in cluster environment where system repo will be synchronized

Parameters:
event - - event that carries the complete DeploymentUnit to be undeployed

deployOnEvent

public void deployOnEvent(@Observes
                          org.uberfire.backend.server.deployment.DeploymentConfigChangedEvent event)
Reacts on events fired based on changes to system repository - important in cluster environment where system repo will be synchronized

Parameters:
event - - event that carries the complete DeploymentUnit to be deployed

jBPM Console NG - Business Domain Backend 6.0.0.CR4-Pre1

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.