Class ApplicationContext
java.lang.Object
com.dnlkk.dependency_injector.application_context.ApplicationContext
- All Implemented Interfaces:
ComponentContainer,PeaFactory
- Direct Known Subclasses:
AnnotationApplicationContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final ComponentFactoryprotected final ConfigScannerprotected final DependencyInjectorprotected final PeaFactory -
Constructor Summary
ConstructorsConstructorDescriptionApplicationContext(Object baseObject, PeaFactory peaFactory, ConfigScanner configScanner, ComponentFactory componentFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsComponent(String componentClass) getComponent(String componentClass) getPeas()<T> TgetPrototypePea(Class<T> componentClass) <T> TgetPrototypePea(Class<T> componentClass, String name) <T> TgetSingletonPea(Class<T> componentClass) <T> TgetSingletonPea(Class<T> componentClass, String name) voidinjectDependencies(Object target) <V> void
-
Field Details
-
basePackage
-
dependencyInjector
-
peaFactory
-
configScanner
-
componentFactory
-
-
Constructor Details
-
ApplicationContext
public ApplicationContext(Object baseObject, PeaFactory peaFactory, ConfigScanner configScanner, ComponentFactory componentFactory)
-
-
Method Details
-
injectDependencies
-
getSingletonPea
- Specified by:
getSingletonPeain interfacePeaFactory
-
getSingletonPea
- Specified by:
getSingletonPeain interfacePeaFactory
-
getPrototypePea
- Specified by:
getPrototypePeain interfacePeaFactory
-
getPrototypePea
- Specified by:
getPrototypePeain interfacePeaFactory
-
getPeas
- Specified by:
getPeasin interfacePeaFactory
-
setPeas
- Specified by:
setPeasin interfacePeaFactory
-
containsComponent
- Specified by:
containsComponentin interfaceComponentContainer
-
getComponent
- Specified by:
getComponentin interfaceComponentContainer
-
getComponents
- Specified by:
getComponentsin interfaceComponentContainer
-