Skip to content

Instantly share code, notes, and snippets.

@Override
public boolean process(Set elements, RoundEnvironment env) {
System.out.println("processor running");
for (Element element: env.getElementsAnnotatedWith(Marker.class)) {
if (element.getKind() == ElementKind.METHOD) {
// Create an aspect targeting this method!
String methodName = element.getSimpleName().toString();
String aspectText =
"public aspect Advise_"+methodName+" {\n"+
" before(): execution(* "+methodName+"(..)) {\n"+
@hsestupin
hsestupin / gist:9464175
Last active August 29, 2015 13:57
Trying to choose the most appropriate persistent message queue for the following needs
1) It should be persistent at the most deep meaning of that word.
All events need to be available forever.
Persistent storage will never be cleaned up in future.
2) Several producers will generate approximately 10 millions new events per day
3) When system starts there will be some default number of different
consumers which will be fed with some filtered stream of those events.
4) In runtime user will have capablity to define its own custom consumers
(defproject cljs-gwt "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/clojurescript "0.0-2138"]
[compojure "1.0.4"]
[hiccup "1.0.0"]]
:plugins [[lein-cljsbuild "1.0.1"]