Thursday, November 20, 2014

Adding Siddhi extensions when using Siddhi as a Java library

You can write Siddhi extensions and run them in WSO2 CEP as given : https://docs.wso2.com/display/CEP310/Writing+Extensions+to+Siddhi

But if you are using Siddhi as a Java library then you can add then to SiddhiManager as follows

        List extensionClasses = new ArrayList();
        extensionClasses.add(org.wso2.siddhi.core.query.processor.window.UniqueWindowProcessorExt.class);
        
        SiddhiConfiguration siddhiConfiguration = new SiddhiConfiguration();
        siddhiConfiguration.setSiddhiExtensions(extensionClasses);
        
        SiddhiManager siddhiManager = new SiddhiManager(siddhiConfiguration);  

9 comments:

  1. You have a real ability for writing unique content. I like how you think and the way you represent your views in this article. I agree with your way of thinking. Thank you for sharing.
    unblocked games| unblocked games at school| unblocked games| friv4school| friv for school| friv games| frivgames| kizi2| kizi 2
    unblockedgames| unblocked games at school| friv 4 school| friv4school| free online games| free online games| jogos da barbie| kizi

    ReplyDelete
  2. update new-best free Cartoon Games online from internet. Pou Games | Dora games and many more.

    ReplyDelete
  3. This is a great web site. Good sparkling user interface and very informative blogs. I will be coming back in a bit, thanks for the great article. I have found it enormously useful..
    happy wheels
    super mario bros
    pacman
    agario

    ReplyDelete
  4. Pou Games : Play Free Online Pou Games, juegos Pou, jogos Pou, jeux Pou. Pou-Games.net

    ReplyDelete
  5. To join the free games you go here. It will have a lot of great games for you that
    gun mayhem 3 | can your pet 2
    learn to fly 3 | happywheels
    tank trouble 3

    ReplyDelete
  6. I would like more information about this, because it is very nice. Thanks for sharing!
    happy wheels demo | friv4school | happy wheels game | girls go games | games 2 girls | happy wheels 2

    ReplyDelete
  7. Thanks for sharing such a nice article. It is really useful to me and all people. yiv games mobile|yiv games mobile

    ReplyDelete
  8. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.

    Discover our website bounty of free online games now!
    Our website has the biggest collection of free online games. Totally new games are added every day!

    age of war 2| gold Miner 2| unfair Mario 2 | cubefield 2 |tanki Online 2

    ReplyDelete
  9. While playing cool math games fireboy and watergirl you can enjoy a lot. This game is famous althogh i don't know what is the specialty of this game. On the other hand friv for school is also a famous games series. There are many other games sries like Get On Top and knowledgeadventure.com games are also available. But in tiles games 2048 game and Bad Ice Cream 3 is a very good game series also but there are some other games as well like Play 2048 Games and Peppa Pig games

    ReplyDelete