Examples of Orderer


Examples of org.apache.hivemind.order.Orderer

        if (_variableSources != null)
            return _variableSources;

        List contributions = getConfiguration(SYMBOL_SOURCES);

        Orderer o =
            new Orderer(
                LogFactory.getLog(SYMBOL_SOURCES),
                _errorHandler,
                ImplMessages.symbolSourceContribution());

        Iterator i = contributions.iterator();
        while (i.hasNext())
        {
            SymbolSourceContribution c = (SymbolSourceContribution) i.next();

            o.add(c, c.getName(), c.getPrecedingNames(), c.getFollowingNames());
        }

        List sources = o.getOrderedObjects();

        int count = sources.size();

        _variableSources = new SymbolSource[count];
View Full Code Here

Examples of org.apache.hivemind.order.Orderer

   
    private synchronized SymbolSource[] initContributedSymbolSources(List contributions)
    {
        SymbolSource[] symbolSources;
       
        Orderer o = new Orderer(LogFactory.getLog(SymbolExpander.class), _errorHandler, XmlImplMessages
                .symbolSourceContribution());

        Iterator i = contributions.iterator();
        while (i.hasNext())
        {
            SymbolSourceContribution c = (SymbolSourceContribution) i.next();

            o.add(c, c.getName(), c.getPrecedingNames(), c.getFollowingNames());
        }

        List sources = o.getOrderedObjects();

        int count = sources.size();

        symbolSources = new SymbolSource[count];
View Full Code Here

Examples of org.apache.hivemind.order.Orderer

        _serviceInterface = serviceInterface;
        _filterInterface = filterInterface;
        _classFactory = classFactory;
        _defaultBuilder = defaultBuilder;

        _orderer = new Orderer(_errorLog, "filter");

    }
View Full Code Here

Examples of org.apache.hivemind.order.Orderer

    public Object createCoreServiceImplementation(
            ServiceImplementationFactoryParameters factoryParameters)
    {
        List contributions = (List) factoryParameters.getFirstParameter();

        Orderer orderer = new Orderer(factoryParameters.getErrorLog(), "command");

        Iterator i = contributions.iterator();
        while (i.hasNext())
        {
            ChainContribution cc = (ChainContribution) i.next();
            orderer.add(cc, cc.getId(), cc.getAfter(), cc.getBefore());
        }

        List ordered = orderer.getOrderedObjects();

        List commands = new ArrayList(ordered.size());

        i = ordered.iterator();
        while (i.hasNext())
View Full Code Here

Examples of org.apache.hivemind.order.Orderer

     */
    public void run()
    {
        long startTime = System.currentTimeMillis();

        Orderer orderer = new Orderer(_errorLog, task());

        Iterator i = _tasks.iterator();
        while (i.hasNext())
        {
            Task t = (Task) i.next();

            orderer.add(t, t.getId(), t.getAfter(), t.getBefore());
        }

        List orderedTasks = orderer.getOrderedObjects();

        int failures = 0;

        i = orderedTasks.iterator();
        while (i.hasNext())
View Full Code Here

Examples of org.apache.hivemind.order.Orderer

        // Any error logging should go to the extension point
        // we're constructing.

        Log log = LogFactory.getLog(getExtensionPointId());

        Orderer orderer = new Orderer(log, getModule().getErrorHandler(), ImplMessages
                .interceptorContribution());

        Iterator i = interceptorDefinitions.iterator();
        while (i.hasNext())
        {
            InterceptorDefinition sid = (InterceptorDefinition) i.next();

            // Sort them into runtime excecution order. When we build
            // the interceptor stack we'll apply them in reverse order,
            // building outward from the core service implementation.

            String precedingNames = null;
            String followingNames = null;
            // Check if info about ordering is available
            if (sid instanceof Orderable) {
                Orderable orderable = (Orderable) sid;
                precedingNames = orderable.getPrecedingNames();
                followingNames = orderable.getFollowingNames();
            }
           
            orderer.add(sid, sid.getName(), precedingNames, followingNames);
        }

        return orderer.getOrderedObjects();
    }
View Full Code Here

Examples of org.apache.hivemind.order.Orderer

    public Object createCoreServiceImplementation(
            ServiceImplementationFactoryParameters factoryParameters)
    {
        Map contributions = (Map) factoryParameters.getFirstParameter();

        Orderer orderer = new Orderer(factoryParameters.getErrorLog(), "command");

        Iterator i = contributions.values().iterator();
        while (i.hasNext())
        {
            ChainContribution cc = (ChainContribution) i.next();
            orderer.add(cc, cc.getId(), cc.getAfter(), cc.getBefore());
        }

        List ordered = orderer.getOrderedObjects();

        List commands = new ArrayList(ordered.size());

        i = ordered.iterator();
        while (i.hasNext())
View Full Code Here

Examples of org.apache.hivemind.order.Orderer

        // Any error logging should go to the extension point
        // we're constructing.

        Log log = LogFactory.getLog(getExtensionPointId());

        Orderer orderer = new Orderer(log, getModule().getErrorHandler(), ImplMessages
                .interceptorContribution());

        Iterator i = _interceptorContributions.iterator();
        while (i.hasNext())
        {
            ServiceInterceptorContribution sic = (ServiceInterceptorContribution) i.next();

            // Sort them into runtime excecution order. When we build
            // the interceptor stack we'll apply them in reverse order,
            // building outward from the core service implementation.

            orderer.add(sic, sic.getName(), sic.getPrecedingInterceptorIds(), sic
                    .getFollowingInterceptorIds());
        }

        return orderer.getOrderedObjects();
    }
View Full Code Here

Examples of org.apache.hivemind.order.Orderer

        if (_variableSources != null)
            return _variableSources;

        List contributions = getConfiguration(SYMBOL_SOURCES, null);

        Orderer o = new Orderer(LogFactory.getLog(SYMBOL_SOURCES), _errorHandler, ImplMessages
                .symbolSourceContribution());

        Iterator i = contributions.iterator();
        while (i.hasNext())
        {
            SymbolSourceContribution c = (SymbolSourceContribution) i.next();

            o.add(c, c.getName(), c.getPrecedingNames(), c.getFollowingNames());
        }

        List sources = o.getOrderedObjects();

        int count = sources.size();

        _variableSources = new SymbolSource[count];
View Full Code Here

Examples of org.apache.hivemind.order.Orderer

        if (_variableSources != null)
            return _variableSources;

        List contributions = getConfiguration(SYMBOL_SOURCES, null);

        Orderer o = new Orderer(LogFactory.getLog(SYMBOL_SOURCES), _errorHandler, ImplMessages
                .symbolSourceContribution());

        Iterator i = contributions.iterator();
        while (i.hasNext())
        {
            SymbolSourceContribution c = (SymbolSourceContribution) i.next();

            o.add(c, c.getName(), c.getPrecedingNames(), c.getFollowingNames());
        }

        List sources = o.getOrderedObjects();

        int count = sources.size();

        _variableSources = new SymbolSource[count];
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.