Package org.jboss.dna.graph

Examples of org.jboss.dna.graph.ExecutionContext


    private RepositoryConnectionFactory connectionFactory;

    @Before
    public void beforeEach() {
        MockitoAnnotations.initMocks(this);
        context = new ExecutionContext();
        sourceName = "SourceA";
        channel = new ForkRequestProcessor.Channel(sourceName);
        requests = new ArrayList<Request>();
        requests.add(new MockRequest());
        requests.add(new MockRequest());
View Full Code Here


    protected List<Projection> projections;
    protected Collection<PlaceholderNode> placeholders;

    @Before
    public void beforeEach() {
        this.context = new ExecutionContext();
        this.projections = new ArrayList<Projection>();
        this.placeholders = new ArrayList<PlaceholderNode>();
    }
View Full Code Here

     * @throws java.lang.Exception
     */
    @Before
    public void beforeEach() throws Exception {
        MockitoAnnotations.initMocks(this);
        context = new ExecutionContext();
        configurationSourceName = "configuration";
        configurationWorkspaceName = "configSpace";
        repositoryName = "Test Repository";

        // Set up the configuration repository ...
View Full Code Here

    @Before
    public void beforeEach() {
        MockitoAnnotations.initMocks(this);
        sourceName = "federated";
        workspaceName = "my workspace";
        context = new ExecutionContext();
        stub(repositoryContext.getExecutionContext()).toReturn(context);
        projections = new ArrayList<Projection>();
        projections.add(new Projection("source1", "workspace1", false, rule("/a => /a1")));
        projections.add(new Projection("source2", "workspace2", false, rule("/a => /a2", "/b => /b")));
        projections.add(new Projection("source2", "workspace4", false, rule("/x => /y")));
View Full Code Here

    public void startRepository() throws Exception {
        if (!running) {
            // Set up the connection factory to other sources ...

            // Set up the execution context ...
            context = setUpExecutionContext(new ExecutionContext());

            // Set up the configuration source ...
            configSource = setUpConfigurationSource();

            // Set up the source ...
View Full Code Here

    private XmlHandler.AttributeScoping scoping;
    private LinkedList<CreateNodeRequest> requests;

    @Before
    public void beforeEach() {
        context = new ExecutionContext();
        context.getNamespaceRegistry().register(JcrLexicon.Namespace.PREFIX, JcrLexicon.Namespace.URI);
        context.getNamespaceRegistry().register("nt", NT_NAMESPACE_URI);
        destination = new RecordingDestination();
        parentPath = context.getValueFactories().getPathFactory().create("/a/b");
        decoder = null;
View Full Code Here

*/
@Immutable
public class MockSequencerContext extends StreamSequencerContext {

    public MockSequencerContext() {
        super(new ExecutionContext(), null, null, null, new SimpleProblems());
        getNamespaceRegistry().register("dnadtd", "http://www.jboss.org/dna/dtd/1.0");
        getNamespaceRegistry().register("dnaxml", "http://www.jboss.org/dna/xml/1.0");
    }
View Full Code Here

        getNamespaceRegistry().register("dnadtd", "http://www.jboss.org/dna/dtd/1.0");
        getNamespaceRegistry().register("dnaxml", "http://www.jboss.org/dna/xml/1.0");
    }

    public MockSequencerContext( String inputPath ) {
        this(new ExecutionContext(), inputPath);
    }
View Full Code Here

    private PathFactory pathFactory;
    protected int numberOfConnections;

    @Before
    public void beforeEach() throws Exception {
        context = new ExecutionContext();
        pathFactory = context.getValueFactories().getPathFactory();
        source = new InMemoryRepositorySource();
        source.setName("store");
        // Use a connection factory so we can count the number of connections that were made
        RepositoryConnectionFactory connectionFactory = new RepositoryConnectionFactory() {
View Full Code Here

    protected Property validProperty1;
    protected Property validProperty2;

    @Before
    public void beforeEach() {
        context = new ExecutionContext();
        workspace1 = "workspace1";
        workspace2 = "workspace2";
        Path validPath = createPath("/a/b/c");
        UUID validUuid = UUID.randomUUID();
        Name idProperty1Name = createName("id1");
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.ExecutionContext

Copyright © 2018 www.massapicom. 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.