Search in sources :

Example 1 with AggregatePluginInvoke

use of org.apache.sling.scripting.sightly.impl.plugin.AggregatePluginInvoke in project sling by apache.

the class ElementContext method pluginInvoke.

public PluginInvoke pluginInvoke() {
    if (aggregateInvoke == null) {
        Collections.sort(invokeList);
        ArrayList<PluginInvoke> result = new ArrayList<>();
        for (PrioritizedInvoke prioritizedInvoke : invokeList) {
            result.add(prioritizedInvoke.invoke);
        }
        aggregateInvoke = new AggregatePluginInvoke(result);
    }
    return aggregateInvoke;
}
Also used : PluginInvoke(org.apache.sling.scripting.sightly.impl.plugin.PluginInvoke) AggregatePluginInvoke(org.apache.sling.scripting.sightly.impl.plugin.AggregatePluginInvoke) AggregatePluginInvoke(org.apache.sling.scripting.sightly.impl.plugin.AggregatePluginInvoke) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 AggregatePluginInvoke (org.apache.sling.scripting.sightly.impl.plugin.AggregatePluginInvoke)1 PluginInvoke (org.apache.sling.scripting.sightly.impl.plugin.PluginInvoke)1