Hi all,
While I was writing a control part in my article, I felt that "why not just
coding an implementation?". For example, in control tutorial
package hellocontrol;
import org.apache.beehive.controls.api.bean.*;
@ControlImplementation(pairedInterface="hellocontrol.Hello")
public class HelloImpl implements Hello
{
public String hello()
{
return "Hello, World!";
}
}
leads to generate
package hellocontrol;
import org.apache.beehive.controls.api.bean.ControlInterface;
@ControlInterface
public interface Hello
{
public String hello();
}
It seems obvious that in many (simple) cases an interface for a control is a
duplicate from an implementation in terms of method declaration.
What do you think of this?
Ias