Class CompositeDeployer
- java.lang.Object
-
- org.craftercms.studio.impl.v2.deployment.CompositeDeployer
-
- All Implemented Interfaces:
Deployer
public class CompositeDeployer extends Object implements Deployer
CompositeDeployer
that callscreateTargets(String)
anddeleteTargets(String)
in multipleDeployer
s.On create, if one of the
Deployer
fails, the targets that were created successfully previously are roll-backed (withdeleteTargets(String)
-
-
Constructor Summary
Constructors Constructor Description CompositeDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createTargets(String site)
Calls a Crafter Deployer to create any necessary targets for the site.void
deleteTargets(String site)
Deletes the targets associated with the site.void
setDeployers(List<Deployer> deployers)
-
-
-
Method Detail
-
createTargets
public void createTargets(String site) throws org.springframework.web.client.RestClientException
Description copied from interface:Deployer
Calls a Crafter Deployer to create any necessary targets for the site.- Specified by:
createTargets
in interfaceDeployer
- Parameters:
site
- the site- Throws:
org.springframework.web.client.RestClientException
- if an error occurs
-
deleteTargets
public void deleteTargets(String site) throws org.springframework.web.client.RestClientException
Description copied from interface:Deployer
Deletes the targets associated with the site.- Specified by:
deleteTargets
in interfaceDeployer
- Parameters:
site
- the site- Throws:
org.springframework.web.client.RestClientException
- if an error occurs
-
-