Class ComponentInitializationContextImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsComponent​(java.lang.String name, java.lang.String beanType)
      This method returns true if a bean with the given name and type has already beencreated.
      WebComponent getComponent​(java.lang.String name, java.lang.String beanType)
      Returns a webComponent if it has been created previously and matches both name and type; null if the bean is not found.
      void storeComponent​(WebComponent webComponent, java.lang.String beanType)
      This method stores in the context object a WebComponent instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentInitializationContextImpl

        public ComponentInitializationContextImpl()
    • Method Detail

      • containsComponent

        public boolean containsComponent​(java.lang.String name,
                                         java.lang.String beanType)
        This method returns true if a bean with the given name and type has already beencreated.
        Specified by:
        containsComponent in interface ComponentInitializationContext
        Parameters:
        name - The name given to the bean
        beanType - The bean's type name (ex: "ReportBean").
        Returns:
        boolean true if the bean exists.
        Since:
        MicroStrategy Web 9.0.0
      • getComponent

        public WebComponent getComponent​(java.lang.String name,
                                         java.lang.String beanType)
        Returns a webComponent if it has been created previously and matches both name and type; null if the bean is not found.
        Specified by:
        getComponent in interface ComponentInitializationContext
        Parameters:
        name - The name given to the bean
        beanType - The bean's type name (ex: "ReportBean").
        Returns:
        a WebComponent instance if the bean exists.
        Since:
        MicroStrategy Web 9.0.0
      • storeComponent

        public void storeComponent​(WebComponent webComponent,
                                   java.lang.String beanType)
        This method stores in the context object a WebComponent instance.
        Specified by:
        storeComponent in interface ComponentInitializationContext
        Parameters:
        webComponent - the WebComponent instance to store.
        beanType - The bean's type name (ex: "ReportBean").
        Since:
        MicroStrategy Web 9.0.0