Issue Details (XML | Word | Printable)

Key: RIO-19
Type: New Feature New Feature
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

Annotations support for OpString declaration

Created: 04/Mar/08 08:18 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
Rio should provide a way to define the opstring stuff using @Annotations on a regular POJO.

Something like:

@ServiceBean
@SLA(id=XYZ, policy=ABC, maxService=123, lowerThresholdDampeningFactor=3000, upperThresholdDampeningFactor=3000)
public class MyPojo {
  @Watch private StopWatch myWatch = ...

   public void doSomething() {...}

   @Association(name = "MySpace")
   public JavaSpace05 getSpace();
}

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jerome Bernard added a comment - 04/Mar/08 08:25 PM
Maybe a simple Visitor pattern using cglib, ASM or Javassist could to the "trick"?

Jerome Bernard added a comment - 05/Mar/08 02:41 PM
This annotations processing utility may be of help:
http://scannotation.sourceforge.net/

Dennis Reedy added a comment - 30/Oct/08 08:06 PM
Moved to M3

Dennis Reedy added a comment - 27/Mar/09 01:28 PM
Simple queston, what to call an annotation for Association processing? We currently have the org.rioproject.associations.Association class. Ideally the annotaton would be @Association, but that conflicts with the existing class.

I dont like creating another package for this, how about @AutoWireRemote? Something like that?


Dennis Reedy added a comment - 27/Mar/09 01:40 PM
Or maybe just @ServiceAssociation

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