Hello Stephan,

this question is a bit to specific for the users list. I guess you get more response on the dev list.

The conversion is not finished and will never for Cocoon 2.1. In 2.2 components will be replaced as much as possible. Please correct me if I'm wrong.

Joerg

On 22.10.2003 14:34, Stephan Coboos wrote:

Hello,

because the package "component" from Avalon is deprecated, so the package
"service" should be used instead. After I had looked into some cocoon
sources (and Avalon sources = DataSource, too!), it seems to me that not all
components converted to service yet. I'm right?

Which differences between creating a component and creating a service
exists?

To integrate a new component based on the service package I realized the
following steps. They are correct?

Defining the interface (Extending of "Serviceable" necessary?):

// no extension of Component necessary
public interface MyComponent {

    public void myMethod();
}

Creating an implementation of the Component:

public class MyComponentImpl implements MyComponent, Poolable, Loggable {

public void myMethod() {

        // Do something here ...
    }
}

Thank you.

Regards
Stephan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to