summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/resources
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2021-04-02 16:52:56 +0200
committergjoranv <gv@verizonmedia.com>2021-04-02 19:03:05 +0200
commit794378c79b06e6860f862f4c966740a6c8582325 (patch)
tree587a081dded098a251890084c597b9c81d5f21e8 /container-core/src/main/resources
parentd5a41919a4bf595258edfc9a57e9824dab986d1f (diff)
Add config definitions from container-di.
Diffstat (limited to 'container-core/src/main/resources')
-rw-r--r--container-core/src/main/resources/configdefinitions/application-bundles.def5
-rw-r--r--container-core/src/main/resources/configdefinitions/container.components.def23
-rw-r--r--container-core/src/main/resources/configdefinitions/container.di.config.jersey-bundles.def8
-rw-r--r--container-core/src/main/resources/configdefinitions/container.di.config.jersey-injection.def5
-rw-r--r--container-core/src/main/resources/configdefinitions/platform-bundles.def5
5 files changed, 46 insertions, 0 deletions
diff --git a/container-core/src/main/resources/configdefinitions/application-bundles.def b/container-core/src/main/resources/configdefinitions/application-bundles.def
new file mode 100644
index 00000000000..7e03b1e3ac8
--- /dev/null
+++ b/container-core/src/main/resources/configdefinitions/application-bundles.def
@@ -0,0 +1,5 @@
+# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package=com.yahoo.container.di.config
+
+# References to user bundles to install.
+bundles[] file
diff --git a/container-core/src/main/resources/configdefinitions/container.components.def b/container-core/src/main/resources/configdefinitions/container.components.def
new file mode 100644
index 00000000000..f27abc2fa5a
--- /dev/null
+++ b/container-core/src/main/resources/configdefinitions/container.components.def
@@ -0,0 +1,23 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+namespace=container
+
+## A list of components. Components depending on other components may use this to
+## get its list of components injected.
+
+## A component
+components[].id string
+## The component id used by this component to subscribe to its configs (if any)
+components[].configId reference default=":parent:"
+
+## The id of the class to instantiate for this component.
+components[].classId string default=""
+
+## The symbolic name of the Osgi bundle this component is located in.
+## Assumed to be the same as the classid if not set.
+components[].bundle string default=""
+
+## The component id of the component to inject to this component
+components[].inject[].id string
+
+## The name to use for the injected component when injected to this component
+components[].inject[].name string default=""
diff --git a/container-core/src/main/resources/configdefinitions/container.di.config.jersey-bundles.def b/container-core/src/main/resources/configdefinitions/container.di.config.jersey-bundles.def
new file mode 100644
index 00000000000..a226420274d
--- /dev/null
+++ b/container-core/src/main/resources/configdefinitions/container.di.config.jersey-bundles.def
@@ -0,0 +1,8 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+namespace=container.di.config
+
+# The SymbolicName[:Version] of the Jersey bundles
+bundles[].spec string
+
+# The packages to scan for Jersey resources
+bundles[].packages[] string
diff --git a/container-core/src/main/resources/configdefinitions/container.di.config.jersey-injection.def b/container-core/src/main/resources/configdefinitions/container.di.config.jersey-injection.def
new file mode 100644
index 00000000000..9f5be59abbd
--- /dev/null
+++ b/container-core/src/main/resources/configdefinitions/container.di.config.jersey-injection.def
@@ -0,0 +1,5 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+namespace=container.di.config
+
+inject[].instance string
+inject[].forClass string
diff --git a/container-core/src/main/resources/configdefinitions/platform-bundles.def b/container-core/src/main/resources/configdefinitions/platform-bundles.def
new file mode 100644
index 00000000000..a30a846b565
--- /dev/null
+++ b/container-core/src/main/resources/configdefinitions/platform-bundles.def
@@ -0,0 +1,5 @@
+# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package=com.yahoo.container.di.config
+
+# Paths to platform bundles to install.
+bundlePaths[] string