
org.kie.uberfire.plugin.client.config.PluginConfigService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kie-uberfire-runtime-plugins-client Show documentation
Show all versions of kie-uberfire-runtime-plugins-client Show documentation
KIE Uberfire Runtime PlugIns Client
The newest version!
package org.kie.uberfire.plugin.client.config;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.jboss.errai.common.client.api.Caller;
import org.jboss.errai.common.client.api.RemoteCallback;
import org.jboss.errai.ioc.client.api.AfterInitialization;
import org.kie.uberfire.plugin.service.PluginServices;
@ApplicationScoped
public class PluginConfigService {
@Inject
private Caller pluginServices;
private String mediaServletURI;
@AfterInitialization
public void init() {
pluginServices.call( new RemoteCallback() {
@Override
public void callback( final String response ) {
mediaServletURI = response;
}
} ).getMediaServletURI();
}
public String getMediaServletURI() {
return mediaServletURI;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy