[
http://issues.apache.org/jira/browse/BEEHIVE-651?page=comments#action_64966 ]
Julie Zhuo commented on BEEHIVE-651:
------------------------------------
It suppose to be,
@ControlImplementation (isTransient=true)
public class HelloImpl implements Hello
{
OR,
@ControlInterface
public interface Hello implements Serializable
{
You have it right in the sample code above this one.
Usually, people don't notice, since they intend to continue to work with what
they got. But it needs to be right itself. :)
> Sample code in Controls Tutorial Step3 is missing annotaion isTransient=true
> ----------------------------------------------------------------------------
>
> Key: BEEHIVE-651
> URL: http://issues.apache.org/jira/browse/BEEHIVE-651
> Project: Beehive
> Type: Bug
> Components: Documentation
> Versions: V1
> Reporter: Julie Zhuo
> Assignee: Steve Hanson
>
> bash05102005
> Or have its interface/itself implement Serializable. It won't compile that
> way.
> ****Here is the copy of the sample code from the tutorial**************
> Step 3: Add a Parameterized Method to the Control
> To edit the Interface and Implementation Files
> Edit C:/beehive_projects/control_tutorial/WEB-INF/src/pkg/HelloImpl.jcs so it
> appears as follows. Code to add appears in bold.
> package pkg;
> import org.apache.beehive.controls.api.bean.*;
> @ControlImplementation
> public class HelloImpl implements Hello
> {
> public String hello()
> {
> return "hello!";
> }
> public String helloParam( String name )
> {
> return "Hello, " + name + "!";
> }
> }Edit C:/beehive_projects/control_tutorial/WEB-INF/src/pkg/Hello.java so it
> appears as follows. Code to add appears in bold.
> package pkg;
> import org.apache.beehive.controls.api.bean.*;
> @ControlInterface
> public interface Hello
> {
> String hello();
> String helloParam( String name );
> }Edit the Controller.jpf File
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira