Package com.linecorp.armeria.spring
Class SpringDependencyInjector
java.lang.Object
com.linecorp.armeria.spring.SpringDependencyInjector
- All Implemented Interfaces:
DependencyInjector
,SafeCloseable
,AutoCloseable
@UnstableApi
public final class SpringDependencyInjector
extends Object
implements DependencyInjector
Injects dependencies in annotations using the
BeanFactory
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T> T
getInstance
(Class<T> type) Returns the instance of the specifiedClass
.static SpringDependencyInjector
of
(BeanFactory beanFactory) Creates a newSpringDependencyInjector
that injects dependencies in annotated services using the specifiedBeanFactory
.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.common.DependencyInjector
orElse
-
Method Details
-
of
Creates a newSpringDependencyInjector
that injects dependencies in annotated services using the specifiedBeanFactory
. -
getInstance
Description copied from interface:DependencyInjector
Returns the instance of the specifiedClass
.- Specified by:
getInstance
in interfaceDependencyInjector
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSafeCloseable
-
toString
-