Class ClientFactoryService


  • @ApplicationScoped
    public class ClientFactoryService
    extends Object
    Provides the client side and remote caller for the factory manager and services. If the requested factory is present on client side, it will create the object using it. If the requested factory is not present on client side, whether it's not implemented or the object cannot be created on client, it performs the service calls to the factory service.
    • Constructor Detail

      • ClientFactoryService

        protected ClientFactoryService()
      • ClientFactoryService

        @Inject
        public ClientFactoryService​(ClientFactoryManager clientFactoryManager,
                                    org.jboss.errai.common.client.api.Caller<org.kie.workbench.common.stunner.core.service.FactoryService> factoryServiceCaller)
    • Method Detail

      • newDefinition

        public <T> void newDefinition​(String definitionId,
                                      org.kie.workbench.common.stunner.core.client.service.ServiceCallback<T> callback)
      • newElement

        public <T> void newElement​(String uuid,
                                   String definitionId,
                                   org.kie.workbench.common.stunner.core.client.service.ServiceCallback<org.kie.workbench.common.stunner.core.graph.Element> callback)
      • newDiagram

        public <M extends org.kie.workbench.common.stunner.core.diagram.Metadata,​D extends org.kie.workbench.common.stunner.core.diagram.Diagram> void newDiagram​(String uuid,
                                                                                                                                                                        String id,
                                                                                                                                                                        M metadata,
                                                                                                                                                                        org.kie.workbench.common.stunner.core.client.service.ServiceCallback<D> callback)