Issue Details (XML | Word | Printable)

Key: RIO-20
Type: Task Task
Status: Open Open
Priority: Major Major
Assignee: Dennis Reedy
Reporter: Jerome Bernard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Rio

Allow BeanAdapter hooks for custom annotations processing

Created: 04/Mar/08 08:22 PM   Updated: 17/Feb/10 05:13 PM
Component/s: Core
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Dependency
 


 Description  « Hide
This would allow for example to write the following POJO:

public class LuceneBlogIndexer implements BlogIndexer {
  @OnEvent(event = KeywordSearchResult.class)
  public void indexKeywordResults(KeywordSearchResult results) throws RemoteException {
    for (BlogEntry blogEntry : results) {
      index(blogEntry);
    }
  }

  public void index(BlogEntry blogEntry) throws RemoteException {
    System.out.printf("Should index entry %s [%s]\n", blogEntry.getTitle(), blogEntry.getPermalink());
  }
}

where the indexKeywordResults() method would be called automatically when a KeywordSearchResult entry is written into space and index(BlogEntry) would be part of the service interface for synchronous calls.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dennis Reedy added a comment - 30/Oct/08 08:06 PM
Moved to M3

Dennis Reedy added a comment - 17/Feb/10 05:13 PM
Unscheduled