Class AdminBeanFactory

  • All Implemented Interfaces:
    LocalBeanFactory

    public final class AdminBeanFactory
    extends AbstractLocalBeanFactory
    AdminBeanFactory is a factory class for instantiating beans in the com.microstrategy.web.admin.beans package. Note that most methods on this class are deprecated; we now provide the BeanFactory class for programmatic bean creation. Please create beans using the BeanFactory instead of using this class directly.
    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Method Detail

      • newAppAdminBean

        @Deprecated
        public AppComponent newAppAdminBean​(int appBeanType)
        Deprecated.
        Use BeanFactory.newBean(java.lang.String) instead. Note that that method will return a bean that has been initialized with an event handler.
        Returns an instance of an application admin bean. Note that the returned bean will not be initialized with an event handler.
        Parameters:
        appBeanType - the bean type to create
        Returns:
        A AppComponent instance.
      • getInstance

        public static AdminBeanFactory getInstance()
        Returns an instance of the AdminBeanFactory object. This is the only way to get the factory object and is the entry point to the various App Admin Beans.
        Returns:
        A AdminBeanFactory instance.
      • newAdminBean

        @Deprecated
        public AdminBean newAdminBean()
        Deprecated.
        Use BeanFactory.newBean(java.lang.String) instead. Note that that method will return a bean that has been initialized with an event handler.
        Returns an instance of a AdminBean object. Note that the returned bean will not be initialized with an event handler.
        Returns:
        A AdminBean instance
      • getBeanInterface

        @Deprecated
        public static java.lang.Class getBeanInterface​(int appBeanType)
        Deprecated.
        Reference bean interface classes directly rather than calling this method. If you need to use reflection to get/set properties on a bean, consider using the ReflectionHelper class.
        Returns the main interface that an application admin bean implements.
        Usually the bean implements an interface, and the methods of the implementation are protected, while the methods of the interface are public. This returns the interface so the client can use reflection to invoke the instance methods.
        Parameters:
        appBeanType - the bean type to create
        Returns:
        A Class instance of the main interface of the bean.
      • getBeanPackage

        protected java.lang.String getBeanPackage()
        Description copied from class: AbstractLocalBeanFactory
        Returns the full name of the package associated with this factory (ex: "com.microstrategy.web.beans").
        Specified by:
        getBeanPackage in class AbstractLocalBeanFactory
        Returns:
        The name of the package associated with this factory.
        Since:
        MicroStrategy Web 9.0.0
      • createBeanInstance

        protected WebComponent createBeanInstance​(java.lang.Class beanClass)
                                           throws java.lang.IllegalAccessException,
                                                  java.lang.InstantiationException
        Description copied from class: AbstractLocalBeanFactory
        Create an instance of beanClass. This implementation simply calls beanClass.newInstance(). Override this method in a derived class to create instances of non-public bean classes. Throws the same exceptions as Class.newInstance().
        Overrides:
        createBeanInstance in class AbstractLocalBeanFactory
        Parameters:
        beanClass - The class of the desired bean.
        Returns:
        An instance of the desired bean class.
        Throws:
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        Since:
        MicroStrategy Web 9.0.0