blob: be94bd4973d58a36172ee7ba226661763cd52b9d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.component.chain.model;
import com.yahoo.container.bundle.BundleInstantiationSpecification;
import com.yahoo.component.chain.dependencies.Dependencies;
import com.yahoo.osgi.provider.model.ComponentModel;
import net.jcip.annotations.Immutable;
/**
* Describes how a chained component should be created.
*
* @author <a href="mailto:arnebef@yahoo-inc.com">Arne Bergene Fossaa</a>
* @author tonytv
*/
@Immutable
public class ChainedComponentModel extends ComponentModel {
public final Dependencies dependencies;
public ChainedComponentModel(BundleInstantiationSpecification bundleInstantiationSpec, Dependencies dependencies,
String configId) {
super(bundleInstantiationSpec, configId);
assert(dependencies != null);
this.dependencies = dependencies;
}
public ChainedComponentModel(BundleInstantiationSpecification bundleInstantiationSpec, Dependencies dependencies) {
this(bundleInstantiationSpec, dependencies, null);
}
}
|