Examples of EntryPoint


Examples of org.eclipse.rap.rwt.application.EntryPoint

  @Test
  public void testCanCreateEntrypoints() {
    UIConfiguration uiConfiguration = new UIConfiguration();
    TabrisUIEntrypointFactory factory = new TabrisUIEntrypointFactory( uiConfiguration );

    EntryPoint entryPoint = factory.create();

    assertNotNull( entryPoint );
  }
View Full Code Here

Examples of org.eclipse.rap.rwt.application.EntryPoint

  @Test
  public void testCreatesNewEntrypoints() {
    UIConfiguration uiConfiguration = new UIConfiguration();
    TabrisUIEntrypointFactory factory = new TabrisUIEntrypointFactory( uiConfiguration );

    EntryPoint entryPoint1 = factory.create();
    EntryPoint entryPoint2 = factory.create();

    assertNotSame( entryPoint1, entryPoint2 );
  }
View Full Code Here

Examples of org.kie.api.runtime.rule.EntryPoint

    public Agenda getAgenda() {
        return new AgendaAdapter(delegate.getAgenda());
    }

    public WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String name) {
        EntryPoint entryPoint = delegate.getEntryPoint(name);
        return entryPoint == null ? null : new WorkingMemoryEntryPointAdapter(entryPoint);
    }
View Full Code Here

Examples of org.kie.api.runtime.rule.EntryPoint

            ((AbstractWorkingMemory)context.wm).initInitialFact(context.ruleBase, context);
            context.handles.put( session.getInitialFactHandle().getId(), session.getInitialFactHandle() );
        }

        for ( ProtobufMessages.EntryPoint _ep : _session.getRuleData().getEntryPointList() ) {
            EntryPoint wmep = context.wm.getEntryPoints().get( _ep.getEntryPointId() );
            readFactHandles( context,
                             _ep,
                             ((NamedEntryPoint) wmep).getObjectStore(),
                             pctxs );
            readTruthMaintenanceSystem( context,
View Full Code Here

Examples of org.kie.api.runtime.rule.EntryPoint

                                       ObjectStore objectStore,
                                       List<PropagationContext> pctxs) throws IOException,
                                                                          ClassNotFoundException {
        InternalWorkingMemory wm = context.wm;

        EntryPoint entryPoint = context.wm.getEntryPoints().get( _ep.getEntryPointId() );
       
        // load the handles
        for ( ProtobufMessages.FactHandle _handle : _ep.getHandleList() ) {
            InternalFactHandle handle = readFactHandle( context,
                                                        entryPoint,
View Full Code Here

Examples of org.kie.api.runtime.rule.EntryPoint

        // If either way retrieves a strategy, use it
        if (strategy != null) {
            object = strategy.read( context.stream );
        }

        EntryPoint entryPoint = null;
        if (context.readBoolean()) {
            String entryPointId = context.readUTF();
            if (entryPointId != null && !entryPointId.equals( "" )) {
                entryPoint = context.wm.getEntryPoints().get( entryPointId );
            }
View Full Code Here

Examples of org.kie.api.runtime.rule.EntryPoint

    public Collection<FactHandle> execute(Context context) {
        KieSession ksession = ((KnowledgeCommandContext) context).getKieSession();
        List<FactHandle> handles = new ArrayList<FactHandle>();
       
        EntryPoint wmep;
        if ( StringUtils.isEmpty( this.entryPoint ) ) {
            wmep = ksession;
        } else {
            wmep = ksession.getEntryPoint( this.entryPoint );
        }

        for ( Object object : objects ) {
            handles.add( wmep.insert( object ) );
        }

        if ( outIdentifier != null ) {
            if ( this.returnObject ) {
                ((StatefulKnowledgeSessionImpl)ksession).session.getExecutionResult().getResults().put( this.outIdentifier,
View Full Code Here

Examples of org.openquark.cal.compiler.io.EntryPoint

    private Object runCAF(QualifiedName funcName, BasicCALServices calServices, ExecutionContext context)
        throws CALExecutorException {
        CompilerMessageLogger ml = new MessageLogger ();

        // Compile it, indicating that this is an adjunct
        EntryPoint targetEntryPoint =
            calServices.getWorkspaceManager().getCompiler().getEntryPoint(
                EntryPointSpec.make(funcName), funcName.getModuleName(), ml);

        if (targetEntryPoint == null) {
            return null;
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.