users@glassfish.java.net

How to make _at_Service with using class extends

From: <glassfish_at_javadesktop.org>
Date: Mon, 07 Apr 2008 09:11:35 PDT

Hi,

I have a problem implementing one service:
Example code:

abstract class AbstractClass{

public AbstractClass(String input){
...
}

}

@Contract
interface Foo{

public void doIt();
}



@Service
public class ServiceThatExtends extends AbstractClass implements Foo{

ServiceThatExtends(String input){
super(input);
}

public void doIt(){
}

}


In this case we don not use the default contructor and I get a Unsatisfied dependency exception, but why do we always have to use the default constructor in Services?
[Message sent by forum member 'antsh' (antsh)]

http://forums.java.net/jive/thread.jspa?messageID=268016