GitHub user neykov opened a pull request:
https://github.com/apache/incubator-brooklyn/pull/211
Promote apps in catalog to Templates
When adding CAMP specs to the catalog check if they describe an entity
implementing Application and if so use a TEMPLATE instead of ENTITY item.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/neykov/incubator-brooklyn
promote-catalog-templates
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-brooklyn/pull/211.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #211
----
commit d0b6fbeef7d0e8169649681182e92d790bbb420a
Author: Svetoslav Neykov <[email protected]>
Date: 2014-10-01T11:02:52Z
Move out newClassLoadingContext out of the base API to a helper method.
Solving the following problems:
* Doesn't need to be a base API, using only publicly available data
* Wasn't really clear what we get depending on whether called from a
CatalogItemDo, CatalogItemDtoAbstract, with null or non-null mgmt argument, due
to the recursive nature of the creation.
* We were getting loads of nested sequential loaders due to the recursive
nature of building them.
* Not possible to create a loader without access to an existing
CatalogItem (which is the trigger cause for the changes, preparing the ground
for the next commit)
commit 0c6cb9e55673f2d66dd2cec09f483d3cb226e759
Author: Svetoslav Neykov <[email protected]>
Date: 2014-10-01T11:41:07Z
Mark the wrapper app when instantiating from CAMP.
commit 8c6ca9c26e81134722a648893dd1ce5c16834f8a
Author: Svetoslav Neykov <[email protected]>
Date: 2014-10-01T11:44:34Z
Promote catalog items to TEMPLATE if the root entity is an App.
Creates a spec for the item when adding to the catalog so the app check can
be made, which means that addItem behaviour switches from lazy to eager
instantiation (though the spec isn't kept long-term atm).
commit 6136d30016ddf18793e4ee5fe2411b8b7e36634b
Author: Svetoslav Neykov <[email protected]>
Date: 2014-10-01T11:45:02Z
Misc Locale and Windows test fixes
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---