I\'m writing a JAX-RS library (not an application).
I have:
abstract class A {
@PostConstruct
priva
Annotations are not inherited. You must create a @PostConstruct
annotated method for each sub-class.
To assist/remind the developer, you could require a postConstruct()
method and hope the developer annotates it appropriately as suggested by its name:
public abstract class A {
@PostConstruct // annotation here has no value except as a reminder
public abstract void postConstruct();