This is pretty neat and is one of the reasons I started looking for a component based architecture. This snippet happens to be from Tapestry.
package org.example.app.pages;
import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.Property;
import org.example.app.components.Count;
public class Countdown {
@Component(parameters = { "start=5", "end=1", "value=countValue" })
private Count count;
@Property private int countValue;
}
via Apache Tapestry – Component Classes.
Related posts:
Post a Comment