Example usage for com.liferay.portal.kernel.deploy.auto.context AutoDeploymentContext getContext

List of usage examples for com.liferay.portal.kernel.deploy.auto.context AutoDeploymentContext getContext

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.deploy.auto.context AutoDeploymentContext getContext.

Prototype

public String getContext() 

Source Link

Usage

From source file:com.liferay.deploylistener.hook.deploy.DeployListenerDeployManagerImpl.java

License:Open Source License

@Override
public void deploy(AutoDeploymentContext autoDeploymentContext) throws Exception {

    if (!sendMesssage(autoDeploymentContext.getContext(), COMMAND_ON_BEFORE_DEPLOY)) {

        return;/*  w  ww  . ja  va 2s.c o m*/
    }

    _deployManager.deploy(autoDeploymentContext);

    sendMesssage(autoDeploymentContext.getContext(), COMMAND_ON_AFTER_DEPLOY);
}

From source file:com.sqli.liferay.imex.portal.kernel.deploy.auto.ImExAutoDeployListener.java

License:Open Source License

public void deploy(AutoDeploymentContext autoDeploymentContext) throws AutoDeployException {

    this.deploy(autoDeploymentContext.getFile(), autoDeploymentContext.getContext());

}