Class ExtensibleContribution

java.lang.Object
org.nuxeo.runtime.deploy.Contribution
org.nuxeo.runtime.deploy.ExtensibleContribution
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CompositeContribution

public abstract class ExtensibleContribution extends Contribution
Author:
Bogdan Stefanescu
  • Field Details

  • Constructor Details

    • ExtensibleContribution

      public ExtensibleContribution()
  • Method Details

    • copyOver

      protected abstract void copyOver(ExtensibleContribution contrib)
      Copy this contribution data over the given one.

      Warn that the copy must be done deeply - you should clone every element in any collection you have. This is to avoid merging data you copy into the base contribution and breaking subsequent merging operations.

      The baseContributionId and contributionId fields should not be copied since their are copied by the base classes implementation.

    • getBaseContributionId

      public String getBaseContributionId()
    • setBaseContribution

      public void setBaseContribution(ExtensibleContribution baseContribution)
    • setBaseContributionId

      public void setBaseContributionId(String baseContributionId)
    • resolve

      public void resolve(ContributionManager mgr)
      Overrides:
      resolve in class Contribution
    • unresolve

      public void unresolve(ContributionManager mgr)
      Overrides:
      unresolve in class Contribution
    • getBaseContribution

      public ExtensibleContribution getBaseContribution()
    • getRootContribution

      public ExtensibleContribution getRootContribution()
    • isRootContribution

      public boolean isRootContribution()
    • getMergedContribution

      protected ExtensibleContribution getMergedContribution()
    • install

      public void install(ManagedComponent comp)
      Overrides:
      install in class Contribution
    • uninstall

      public void uninstall(ManagedComponent comp)
      Overrides:
      uninstall in class Contribution
    • clone

      public ExtensibleContribution clone()
      perform a deep clone to void sharing collection elements between clones
      Overrides:
      clone in class Object