org.mule.security.oauth.callback.ProcessCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mule-module-devkit-support Show documentation
Show all versions of mule-module-devkit-support Show documentation
Interfaces and classes required by Devkit.
The newest version!
/*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.security.oauth.callback;
import org.mule.api.devkit.ProcessTemplate;
import java.util.List;
/**
* Callback with logic to execute within a controlled environment provided by {@link ProcessTemplate}
* @param type of the return value of the processing execution
*
*/
public abstract class ProcessCallback
{
private String accessTokenId;
public abstract T process(O object) throws Exception;
public abstract List> getManagedExceptions();
public abstract boolean isProtected();
public String getAccessTokenId()
{
return accessTokenId;
}
public void setAccessTokenId(String accessTokenId)
{
this.accessTokenId = accessTokenId;
}
}