Examples of EntryPoint


Examples of com.google.gwt.core.client.EntryPoint

  public void onModuleLoad() {
    try {
      EntryPointFactory u = (EntryPointFactory) GWT
          .create(EntryPointFactory.class);
      EntryPoint ep = u.getEntryPoint();
      ep.onModuleLoad();
    } catch (Exception exception) {
      exception.printStackTrace();
    }
  }
View Full Code Here

Examples of com.ponysdk.core.main.EntryPoint

        else configurations.addAll(clientConfigurations);

        final ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(configurations.toArray(new String[0]));

        final EventBus rootEventBus = applicationContext.getBean(EventBus.class);
        final EntryPoint entryPoint = applicationContext.getBean(EntryPoint.class);
        final PHistory history = applicationContext.getBean(PHistory.class);

        ponySession.setRootEventBus(rootEventBus);
        ponySession.setHistory(history);
View Full Code Here

Examples of cross.EntryPoint

   
    hidingplace = new ArrayList<HidingPlace>();
    hidingplace.add(new HidingPlace());
   
    entrypoints = new ArrayList<EntryPoint>();
    entrypoints.add(new EntryPoint());
   
    quitpoints = new ArrayList<QuitPoint>();
    quitpoints.add(new QuitPoint());
   
 
View Full Code Here

Examples of net.sourceforge.javautil.classloader.boot.EntryPoint

    this.addArgument("class", Class.class, "The main, entry point type or runnable class");
    this.addOption("cl", String.class, "Use the class loader from the groovy environment using the name specified", "");
  }

  public Object execute(GroovyCLIContext ctx, CommandLineArgumentsStandard arguments) {
    EntryPoint point = (EntryPoint) ctx.getUI().getDomain().getVariable("entry");
    EntryPointType type = (EntryPointType) ctx.getUI().getDomain().getVariable("epcli");
   
    ClassLoader original = null;
    PassedOption cl = arguments.getOption("cl");
    if (cl != null && ctx.getUI().getDomain().getVariable((String) cl.getValue()) instanceof ClassLoader) {
      original = Thread.currentThread().getContextClassLoader();
      Thread.currentThread().setContextClassLoader((ClassLoader)ctx.getUI().getDomain().getVariable((String) cl.getValue()));
    }
   
    String mainClass = (String) arguments.getArgument(0).getValue();
   
    try {
      point.boot(ClassCache.getFor(ReflectionUtil.getClass(mainClass)), type, mainClass);
      return new ExecutionResults(mainClass, null);
    } catch (Throwable e) {
      return new ExecutionResults(mainClass, e);
    } finally {
      if (original != null) Thread.currentThread().setContextClassLoader(original);
View Full Code Here

Examples of org.apache.tuscany.model.assembly.EntryPoint

        return createEntryPoint(entryPointName, configuredService, binding, configuredReference);
    }

    public EntryPoint createEntryPoint(String entryPointName, ConfiguredService configuredService, Binding binding, ConfiguredReference configuredReference) {
        EntryPoint entryPoint = createEntryPoint();
        entryPoint.setName(entryPointName);
        entryPoint.setConfiguredService(configuredService);
        entryPoint.setConfiguredReference(configuredReference);
        entryPoint.getBindings().add((Binding)binding);
        return entryPoint;
    }
View Full Code Here

Examples of org.apache.tuscany.model.assembly.EntryPoint

    public static CompositeContext createModuleWithJSONRPCEntryPoint(String entryPointName, Object instance) {
        MockCompositeContextImpl cci = new MockCompositeContextImpl();
        Module module = (Module) cci.getComposite();
        List<EntryPoint> entryPoints = module.getEntryPoints();
        EntryPoint ep = createMockEntryPoint(entryPointName);
        addJSONRPCBinding(ep);
        entryPoints.add(ep);
        cci.start();

        Map<String, Context> ics = new HashMap<String, Context>();
View Full Code Here

Examples of org.apache.tuscany.model.assembly.EntryPoint

        return cci;
    }

    public static EntryPoint createMockEntryPoint(String name) {
        EntryPoint entryPoint = new EntryPointImpl() {
        };
        entryPoint.setName(name);
        return entryPoint;
    }
View Full Code Here

Examples of org.apache.tuscany.model.assembly.EntryPoint

                    registerAutowire((ModuleComponent) component);
                } else {
                    registerAutowire(component);
                }
            } else if (model instanceof EntryPoint) {
                EntryPoint ep = (EntryPoint) model;
                module.getEntryPoints().add(ep);
                configuration = (ContextFactory<Context>) ep.getContextFactory();
                if (configuration == null) {
                    ConfigurationException e = new MissingContextFactoryException("Context factory not set");
                    e.setIdentifier(ep.getName());
                    e.addContextName(getName());
                    throw e;
                }
                registerConfiguration(configuration);
                registerAutowire(ep);
View Full Code Here

Examples of org.apache.tuscany.model.assembly.EntryPoint

        this.messageFactory = msgFactory;
    }

    public void build(AssemblyObject object) throws BuilderException {
        if (object instanceof EntryPoint) {
            EntryPoint ep = (EntryPoint) object;
            if (ep.getBindings().size() < 1 || !(ep.getBindings().get(0) instanceof FooBinding)) {
                return;
            }
            EntryPointContextFactory contextFactory = new FooEntryPointContextFactory(ep.getName(), messageFactory);
            ConfiguredService configuredService = ep.getConfiguredService();
            Service service = configuredService.getPort();
            SourceWireFactory wireFactory = wireFactoryService.createSourceFactory(ep.getConfiguredReference()).get(0);
            contextFactory.addSourceWireFactory(service.getName(), wireFactory);
            ep.setContextFactory(contextFactory);
        } else if (object instanceof ExternalService) {
            ExternalService es = (ExternalService) object;
            if (es.getBindings().size() < 1 || !(es.getBindings().get(0) instanceof FooBinding)) {
                return;
            }
View Full Code Here

Examples of org.apache.tuscany.model.assembly.EntryPoint

    public void build(AssemblyObject object) throws BuilderException {
        if (!(object instanceof EntryPoint)) {
            return;
        }
        EntryPoint entryPoint = (EntryPoint) object;
        if (entryPoint.getBindings().size() < 1) {
            return;
        }
        if (!bindingClass.isAssignableFrom(entryPoint.getBindings().get(0).getClass())) {
            return;
        }

        EntryPointContextFactory contextFactory = createEntryPointContextFactory(entryPoint, messageFactory);
        ConfiguredService configuredService = entryPoint.getConfiguredService();
        Service service = configuredService.getPort();
        SourceWireFactory wireFactory = wireService.createSourceFactory(entryPoint.getConfiguredReference()).get(0);
        contextFactory.addSourceWireFactory(service.getName(), wireFactory);
        entryPoint.setContextFactory(contextFactory);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.