Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Injecting non ebean classes #236

Description

@pleerock

How do I do that? For example I have some classes which are not editable (maybe some libraries), in situations where I can't mark classes as EBeans ?

Activity

  1. pyricau commented on Jun 14, 2012

    @pyricau
    Contributor

    Our current answer is that.. you simply cannot do that. The reason is that Eclipse compiler is an incremental compiler, it doesn't give you access to the whole codebase. So we can't build a tree of the whole components. Which means each component much know how to build itself, and that's why we need to generate a subclass for each injected component, and let them provide a common way to build themselves.

  2. pleerock commented on Jun 14, 2012

    @pleerock
    Author

    Metatags like @EReceiver, @eservice allows us to get class instances which are not marked as EBean. Maybe we can "register" (or something else, I dont know how does @EReceiver, @eservice work) classes without marking them as EBean? So, we register somewhere in global and they made ebeans without inserting metatag

  3. pyricau commented on Jun 14, 2012

    @pyricau
    Contributor

    @EReceiver and @EService are the equivalents of @EBean... you put them on classes, which means you need to modify the classes. There's no way to register an external class, there's no global config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions