Class DefaultBundleAssembleStrategy
java.lang.Object
com.elo.gradle.osgi.constraints.assemble.DefaultBundleAssembleStrategy
- All Implemented Interfaces:
AssembleStrategy<BundleConstraints,BundleExtension>
public class DefaultBundleAssembleStrategy
extends Object
implements AssembleStrategy<BundleConstraints,BundleExtension>
The standard strategy for merging
BundleConstraints-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEnriches a Gradle extension with the information from a Constratints definition.assemble(BundleConstraints constraint1, BundleConstraints constraint2) Merges twoAssemblableConstraintsinto one constraints definition.
-
Constructor Details
-
DefaultBundleAssembleStrategy
public DefaultBundleAssembleStrategy()
-
-
Method Details
-
assemble
Merges twoAssemblableConstraintsinto one constraints definition.- Specified by:
assemblein interfaceAssembleStrategy<BundleConstraints,BundleExtension> - Parameters:
constraint1- the first constraints definition.constraint2- the second constraints definition- Returns:
- the merged constraints definition
-
accumulate
Enriches a Gradle extension with the information from a Constratints definition.- Specified by:
accumulatein interfaceAssembleStrategy<BundleConstraints,BundleExtension> - Parameters:
be- the enriched extensionc- the constraints definition.
-