Field Summary

A marker config value which indicates that an Application entity was created automatically,
needed because a plan might give multiple top-level entities or a non-Application top-level entity,
in a context where Brooklyn requires an Application at the root.

Methods inherited from class java.lang.Object

Field Detail

WRAPPER_APP_MARKER

A marker config value which indicates that an Application entity was created automatically,
needed because a plan might give multiple top-level entities or a non-Application top-level entity,
in a context where Brooklyn requires an Application at the root.

canUnwrapEntity

Returns true if the spec is for a wrapper app with no important settings, wrapping a single child entity.
for use when adding from a plan specifying multiple entities but there is nothing significant at the application level,
and the context would like to flatten it to remove the wrapper yielding just a single entity.
(but note the result is not necessarily an Application;
see canUnwrapApplication(EntitySpec) if that is required).