
jadex.extension.rs.invoke.SRest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-extension-webservice Show documentation
Show all versions of jadex-platform-extension-webservice Show documentation
The Jadex webservice platform extension package contains
basic functionality for WSDL web services and REST web services.
The newest version!
package jadex.extension.rs.invoke;
import jadex.bridge.IInternalAccess;
import jadex.extension.rs.RSFactory;
import java.lang.reflect.Proxy;
/**
* Static helper class for rest web service invocation.
*/
public class SRest
{
/**
* Create a wrapper rest service implementation based on mapping information.
* Components can call this method to create a service implementation that
* uses an external service.
*
* @param agent The internal access of the publishing agent.
* @param type The Jadex interface type of the service to be published.
* @param impl The mapping infomation as annotated interface class.
*/
public static Object createServiceImplementation(IInternalAccess agent, Class> type, Class> impl)
{
return Proxy.newProxyInstance(agent.getClassLoader(), new Class[]{type},
RSFactory.getInstance().createRSWrapperInvocationHandler(agent, impl));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy