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 Application getInstance()  
    void postInitComponent​(java.lang.Class<java.lang.Object> clazz, java.lang.Object instance)
    Will be called after the components dependencies injection.
    void preCreateComponent​(java.lang.Class<java.lang.Object> clazz)
    Will be called before a component is created
    void preInitComponent​(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getInstance

      public static Application getInstance()
    • preCreateComponent

      public void preCreateComponent​(java.lang.Class<java.lang.Object> clazz)
      Description copied from interface: IocContextListener
      Will be called before a component is created
      Specified by:
      preCreateComponent in interface IocContextListener<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: IocContextListener
      Will be called after the component has been instantiate and before injecting the components dependencies
      Specified by:
      preInitComponent in interface IocContextListener<java.lang.Object>
      Parameters:
      clazz - The component class
      instance - The component instance
    • postInitComponent

      public void postInitComponent​(java.lang.Class<java.lang.Object> clazz, java.lang.Object instance)
      Description copied from interface: IocContextListener
      Will be called after the components dependencies injection.
      Specified by:
      postInitComponent in interface IocContextListener<java.lang.Object>
      Parameters:
      clazz - The component class
      instance - The component instance