Skip to content

Allow arbitrary beans to be added to catalog and used in config, initializers, and elsewhere#1109

Merged
duncangrant merged 16 commits intoapache:masterfrom
ahgittin:registered-types-allow-references-in-camp
Sep 14, 2020
Merged

Allow arbitrary beans to be added to catalog and used in config, initializers, and elsewhere#1109
duncangrant merged 16 commits intoapache:masterfrom
ahgittin:registered-types-allow-references-in-camp

Conversation

@ahgittin
Copy link
Contributor

See the change to instructions in apache/brooklyn-docs#309 and the tests added here.

In short, you can now add arbitrary types and values for their fields to the catalog, and then use those in config and in initializers.

This can be quite useful eg if you have an initializer which adds an effector you want to add in many places, add that initializer to the catalog as a bean, and then simply refer to that type in any initializer block where you want to use it!

…deep conversion semantics change

(semantics pretty much unchanged by this commit, but prepared for an improvement which does change semantics; this is exploring the impact of that change;
and adding the tests as WIP for what we plan to add next)
…ys/lists as values were allowed even if their type didn't allow them
…icies and enrichers

(now allowing RTs for enrichers as well as policies (always) and initializers (recent commits in this branch))
…s or brooklyn.config can be passed

introduces new conveniences in EntityInitializers

misc other tidies
shares code, adds support for 'list' and 'map', adds support for generics
@ahgittin ahgittin force-pushed the registered-types-allow-references-in-camp branch from aca1f7f to 3fdab4f Compare September 11, 2020 15:50
@duncangrant duncangrant merged commit 3c7d523 into apache:master Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants