Bug 1050014 - Cannot deploy bundle to EAP domain mode

Le 17/06/2014 10:25, Lukas Krejci a écrit :
> Well, I'm not sure if we should "codify" such things when the bundle
> subsystem as such doesn't understand them.
> Wouldn't the same be achievable through the "action" attribute of the
> |BundleHandoverFacet#handleContent()|?

I think you're right. I also missed that when 
BundleDeployRequest#isRevert returns true, we are in fact re-deploying 
the previous version, and only providing a hint to the bundle plugin 
component, so that it can restore backed up files.

So maybe the whole BundleHandoverContext object should be removed.

>
> Btw. how do you plan for the bundle handlers to actually do the
> handover? Will they have a reference to the facet implementation
> available somewhere that they will call directly or do you want to have
> another simple API exposed to the bundle handlers to which they will
> hand over the deployment?

I planned to add a new method to the BundleManagerProvider interface. 
Each bundle implementation

I know this will break backward compatibility, but I think it is 
acceptable as I never heard of any bundle plugin implementation other 
than our ANT and Filetemplate types.