Doesn't inject field with my annotation

asked 2016-06-22 09:18:13 +0800

Skylow gravatar image Skylow
1 1

updated 2016-06-22 09:18:33 +0800

I have own annotation @EntryPoints and I declare my interface:

@Documented @Retention(RetentionPolicy.RUNTIME) public @interface EntryPoints {

public String page();

public String registerAs();


@EntryPoints(page = "/resources/worker/worker.zul", registerAs = "workerCRUD")

public interface IWorkerCRUDControllerEntryPoints {

public abstract void goToEditForm(Worker worker);

public abstract void goToCreateForm();

void goToList();


So next, in my class, my field was inject in old version.

public class WorkerCRUDController extends GenericForwardComposer implements IWorkerCRUDControllerEntryPoints {

private IDBPasswordEncoderService dbPasswordEncoderService;

private ILimitsModel limitsModel;

private IWorkerModel workerModel;

private IResourceDAO resourceDAO;

private IUserCRUDController userCRUD;

private Window listWindow;

private Window editWindow;

private IURLHandlerRegistry URLHandlerRegistry;

private OnlyOneVisible visibility;

private IMessagesForUser messages;

private Component messagesContainer;

private CriterionsController criterionsController;

private LocalizationsController localizationsForEditionController;

private LocalizationsController localizationsForCreationController;

private ResourcesCostCategoryAssignmentController resourcesCostCategoryAssignmentController;

private IWorkerCRUDControllerEntryPoints workerCRUD;  <--- THIS


And right now current field "workerCRUD" is null!

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2016-06-22 09:18:13 +0800

Seen: 24 times

Last updated: Jun 22 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More