org.actorsguildframework.annotations
Annotation Type Prop


@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
@Inherited
public @interface Prop

The Prop annotation can be used on abstract getter methods to tell the Actors Guild framework generate the property accessor methods. Prop can be used in any Actor and any Bean. When you create such a class using Agent.create(Class, org.actorsguildframework.Props), it will create an instance of a sub-class of your original class which implements the setter and getter methods. create also allows you to specify values for the properties.

For example, this code snippet defines a property that the framework will implement for you: