abstract class « Annotation « Spring Q&A





1. Spring, abstract class and annotations    stackoverflow.com

I've got a pretty simple abstract class

public abstract class AbstractServiceActions {

@Autowired
protected DatabaseModel dbModel;

protected User user;
protected boolean complete;
protected String serviceResult;

public AbstractServiceActions(User user) {
this.user = user;
this.serviceResult = "";
}

public abstract String doAction();
}
Now you can ...

2. Annotation on Abstract classes?    forum.springsource.org

I'm trying out Annotated Controllers and Components for the first time. It's not clear to me how to handle annotating abstract classes. For example take the following code... Code: @Component public ...