Examples of source()


Examples of org.qi4j.logging.trace.records.CompositeTraceRecordEntity.source()

        }
        else
        {
            EntityBuilder<CompositeTraceRecordEntity> builder = uow.newEntityBuilder( CompositeTraceRecordEntity.class );
            CompositeTraceRecordEntity state = builder.instance();
            state.source().set( object );
            setStandardStuff( compositeType, method, args, entryTime, durationNano, state, exception );
            CompositeTraceRecordEntity ctr = builder.newInstance()// Record is created.
        }
    }
View Full Code Here

Examples of org.qi4j.logging.trace.records.EntityTraceRecordEntity.source()

            EntityComposite source = (EntityComposite) uow.get( (Class<?>) first(
                Qi4j.FUNCTION_DESCRIPTOR_FOR.map( entity ).types() ), identity );
            EntityBuilder<EntityTraceRecordEntity> builder = uow.newEntityBuilder( EntityTraceRecordEntity.class );
            EntityTraceRecordEntity state = builder.instance();
            setStandardStuff( compositeType, method, args, entryTime, durationNano, state, exception );
            state.source().set( source );
            EntityTraceRecordEntity etr = builder.newInstance()// Record is created.
        }
        else if( object instanceof ServiceComposite )
        {
            ServiceComposite service = (ServiceComposite) object;
View Full Code Here

Examples of org.qi4j.logging.trace.records.ServiceTraceRecordEntity.source()

        {
            ServiceComposite service = (ServiceComposite) object;
            EntityBuilder<ServiceTraceRecordEntity> builder = uow.newEntityBuilder( ServiceTraceRecordEntity.class );
            ServiceTraceRecordEntity state = builder.instance();
            setStandardStuff( compositeType, method, args, entryTime, durationNano, state, exception );
            state.source().set( service.toString() );
            ServiceTraceRecordEntity str = builder.newInstance()// Record is created.
        }
        else
        {
            EntityBuilder<CompositeTraceRecordEntity> builder = uow.newEntityBuilder( CompositeTraceRecordEntity.class );
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.autocomplete.AutoComplete.source()

        tabView.selectChild(1);
      }
    });
   
    AutoComplete ac1 = binderUtil.getWidget(ac1El).cast();
    ac1.source(new String[]{"ab", "abc", "abcd", "abc dfgh", "abcdfg"});
  }

}
View Full Code Here

Examples of org.springframework.binding.message.MessageBuilder.source()

        final Map<String, Attribute> attributes = personQuery.getAttributes();
        for (final String attribute : attributes.keySet()) {
            if (!queryAttributes.contains(attribute)) {
                final MessageBuilder messageBuilder = new MessageBuilder();
                messageBuilder.error();
                messageBuilder.source("attributes[" + attribute + "].value");
                messageBuilder.code("personLookup.invalidQueryAttribute");
                messageBuilder.arg(attribute);

                final MessageResolver errorMessage = messageBuilder.build();
                context.addMessage(errorMessage);
View Full Code Here

Examples of org.tmatesoft.hg.core.HgCloneCommand.source()

    HgRemoteRepository hgRemote = new HgLookup().detectRemote(remoteRepo, null);
    if (hgRemote.isInvalid()) {
      System.err.printf("Remote repository %s is not valid", hgRemote.getLocation());
      return;
    }
    cmd.source(hgRemote);
    if (noOptsArgs.size() > 1) {
      cmd.destination(new File(noOptsArgs.get(1)));
    } else {
      cmd.destination(new File(System.getProperty("user.dir")));
    }
View Full Code Here

Examples of org.tmatesoft.hg.core.HgCloneCommand.source()

  public void testSimpleClone() throws Exception {
    int x = 0;
    final File tempDir = Configuration.get().getTempDir();
    for (HgRemoteRepository hgRemote : Configuration.get().allRemote()) {
      HgCloneCommand cmd = new HgCloneCommand();
      cmd.source(hgRemote);
      File dest = new File(tempDir, "test-clone-" + x++);
      if (dest.exists()) {
        RepoUtils.rmdir(dest);
      }
      cmd.destination(dest);
View Full Code Here

Examples of org.tmatesoft.hg.core.HgPullCommand.source()

    if (hgRemote.isInvalid()) {
      System.err.printf("Remote repository %s is not valid", hgRemote.getLocation());
      return;
    }
    HgPullCommand cmd = hgRepo.createPullCommand();
    cmd.source(hgRemote);
    cmd.execute();
    System.out.printf("Sent %d changesets\n", cmd.getPulledRevisions().size());
  }

}
View Full Code Here

Examples of ptolemy.graph.Edge.source()

                /*Schedule schedule = */new Schedule();

                // Expand the super node with adjacent nodes contained
                // within it.
                Edge edge = (Edge) childGraph.edges().iterator().next();
                ptolemy.graph.Node source = edge.source();
                ptolemy.graph.Node sink = edge.sink();
                SymbolicScheduleElement first = _expandAPGAN(childGraph,
                        source, strategy);
                SymbolicScheduleElement second = _expandAPGAN(childGraph, sink,
                        strategy);
View Full Code Here

Examples of y.base.Edge.source()

    public void initSelection() {
        Set<Node> nodesToSelect = new HashSet<Node>();
        for (Object selected : fSelection) {
            if (selected instanceof Edge) {
                Edge edge = (Edge) selected;
                nodesToSelect.add(edge.source());
                nodesToSelect.add(edge.target());
            } else if (selected instanceof Node) {
                Node node = (Node) selected;
                for (EdgeCursor ec = node.edges(); ec.ok(); ec.next()) {
                    Edge edge = ec.edge();
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.