summaryrefslogtreecommitdiffstats
path: root/container-di/src/main/java/com/yahoo/container
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2021-04-02 00:14:15 +0200
committergjoranv <gv@verizonmedia.com>2021-04-12 16:12:49 +0200
commit7704561c0aa2fcd34f58cb79b8781da97b3019c0 (patch)
treeebe88d3170804d6deaf53281e72f9668955c1e29 /container-di/src/main/java/com/yahoo/container
parentcff3a8e44c5fac3e6ab4216bb99d87823262eff0 (diff)
Move componentgraph.Provider from container-di to component.
- It was the only PublicApi class in container-di, and is widely used in the same way as e.g. AbstractComponent from the component module.
Diffstat (limited to 'container-di/src/main/java/com/yahoo/container')
-rw-r--r--container-di/src/main/java/com/yahoo/container/di/componentgraph/Provider.java26
-rw-r--r--container-di/src/main/java/com/yahoo/container/di/componentgraph/package-info.java7
2 files changed, 0 insertions, 33 deletions
diff --git a/container-di/src/main/java/com/yahoo/container/di/componentgraph/Provider.java b/container-di/src/main/java/com/yahoo/container/di/componentgraph/Provider.java
deleted file mode 100644
index 3fd3195e5dd..00000000000
--- a/container-di/src/main/java/com/yahoo/container/di/componentgraph/Provider.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.container.di.componentgraph;
-
-import com.yahoo.component.Deconstructable;
-
-/**
- * <p>Provides a component of the parameter type T.
- * If (and only if) dependency injection does not have a component of type T,
- * it will request one from the Provider providing type T.</p>
- *
- * <p>Providers are useful in these situations:</p>
- * <ul>
- * <li>Some code is needed to create the component instance in question.</li>
- * <li>The component creates resources that must be deconstructed.</li>
- * <li>A fallback component should be provided in case the application (or system)
- * does not provide a component instance.</li>
- * </ul>
- *
- * @author Tony Vaagenes
- * @author gjoranv
- */
-public interface Provider<T> extends Deconstructable {
-
- T get();
-
-}
diff --git a/container-di/src/main/java/com/yahoo/container/di/componentgraph/package-info.java b/container-di/src/main/java/com/yahoo/container/di/componentgraph/package-info.java
deleted file mode 100644
index 0c11cfb5ba4..00000000000
--- a/container-di/src/main/java/com/yahoo/container/di/componentgraph/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-@ExportPackage
-@PublicApi
-package com.yahoo.container.di.componentgraph;
-
-import com.yahoo.api.annotations.PublicApi;
-import com.yahoo.osgi.annotation.ExportPackage;