Package me.gilbva.shrike.scope
Class Application
java.lang.Object
me.gilbva.shrike.scope.Application
- All Implemented Interfaces:
IocContextListener<java.lang.Object>,Scope
public final class Application extends java.lang.Object implements Scope
This class represents the application scope witch is the root context of
Shrike IoC.
- Author:
- Gilberto Vento
-
Method Summary
Modifier and Type Method Description static ApplicationgetInstance()voidpostInitComponent(java.lang.Class<java.lang.Object> clazz, java.lang.Object instance)Will be called after the components dependencies injection.voidpreCreateComponent(java.lang.Class<java.lang.Object> clazz)Will be called before a component is createdvoidpreInitComponent(java.lang.Class<java.lang.Object> clazz, java.lang.Object instance)Will be called after the component has been instantiate and before injecting the components dependencies
-
Method Details
-
getInstance
-
preCreateComponent
public void preCreateComponent(java.lang.Class<java.lang.Object> clazz)Description copied from interface:IocContextListenerWill be called before a component is created- Specified by:
preCreateComponentin interfaceIocContextListener<java.lang.Object>- Parameters:
clazz- The component class
-
preInitComponent
public void preInitComponent(java.lang.Class<java.lang.Object> clazz, java.lang.Object instance)Description copied from interface:IocContextListenerWill be called after the component has been instantiate and before injecting the components dependencies- Specified by:
preInitComponentin interfaceIocContextListener<java.lang.Object>- Parameters:
clazz- The component classinstance- The component instance
-
postInitComponent
public void postInitComponent(java.lang.Class<java.lang.Object> clazz, java.lang.Object instance)Description copied from interface:IocContextListenerWill be called after the components dependencies injection.- Specified by:
postInitComponentin interfaceIocContextListener<java.lang.Object>- Parameters:
clazz- The component classinstance- The component instance
-