Java:
public void handleEvent(Event event) {
ContentObject conObj;
if (event instanceof PageCreateEvent){
PageCreateEvent pageCrtEv = (PageCreateEvent)event;
conObj= pageCrtEv.getContent();
analyzeContentObj(conObj);
}else{
if(event instanceof PageUpdateEvent) {
PageUpdateEvent pageUpdEv=(PageUpdateEvent) event;
conObj= pageUpdEv.getContent();
analyzeContentObj(conObj);
}else{
if (event instanceof BlogPostUpdateEvent){
BlogPostUpdateEvent blogUpdEv= (BlogPostUpdateEvent)event;
conObj= blogUpdEv.getContent();
analyzeContentObj(conObj);
}else{
if (event instanceof BlogPostCreateEvent){
BlogPostCreateEvent blogCrtEv = (BlogPostCreateEvent)event;
conObj= blogCrtEv.getContent();
analyzeContentObj(conObj);
}
}
}
}
}
Ideen? Danke...