Class AdminBeanFactory
- java.lang.Object
- 
- com.microstrategy.web.beans.AbstractLocalBeanFactory
- 
- com.microstrategy.web.admin.beans.AdminBeanFactory
 
 
- 
- All Implemented Interfaces:
- LocalBeanFactory
 
 public final class AdminBeanFactory extends AbstractLocalBeanFactory AdminBeanFactoryis a factory class for instantiating beans in thecom.microstrategy.web.admin.beanspackage. Note that most methods on this class are deprecated; we now provide theBeanFactoryclass for programmatic bean creation. Please create beans using theBeanFactoryinstead of using this class directly.- Since:
- MicroStrategy Web 7.3.1 or earlier
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected WebComponentcreateBeanInstance(java.lang.Class beanClass)Create an instance ofbeanClass.static java.lang.ClassgetBeanInterface(int appBeanType)Deprecated.Reference bean interface classes directly rather than calling this method.protected java.lang.StringgetBeanPackage()Returns the full name of the package associated with this factory (ex: "com.microstrategy.web.beans").static AdminBeanFactorygetInstance()Returns an instance of the AdminBeanFactory object.AdminBeannewAdminBean()Deprecated.UseBeanFactory.newBean(java.lang.String)instead.AppComponentnewAppAdminBean(int appBeanType)Deprecated.UseBeanFactory.newBean(java.lang.String)instead.DiagnosticsBeannewDiagnosticsBean()Deprecated.UseBeanFactory.newBean(java.lang.String)instead.- 
Methods inherited from class com.microstrategy.web.beans.AbstractLocalBeanFactorycanCreateBean, getBeanClassName, newBean
 
- 
 
- 
- 
- 
Method Detail- 
newAppAdminBeanpublic AppComponent newAppAdminBean(int appBeanType) Deprecated.UseBeanFactory.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 AppComponentinstance.
 
 - 
getInstancepublic 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.
 
 - 
newAdminBeanpublic AdminBean newAdminBean() Deprecated.UseBeanFactory.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 aAdminBeanobject. Note that the returned bean will not be initialized with an event handler.- Returns:
- A AdminBeaninstance
 
 - 
newDiagnosticsBeanpublic DiagnosticsBean newDiagnosticsBean() Deprecated.UseBeanFactory.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 aDiagnosticsBeanobject. Note that the returned bean will not be initialized with an event handler.- Returns:
- A DiagnosticsBeaninstance
 
 - 
getBeanInterfacepublic 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 theReflectionHelperclass.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 Classinstance of the main interface of the bean.
 
 - 
getBeanPackageprotected java.lang.String getBeanPackage() Description copied from class:AbstractLocalBeanFactoryReturns the full name of the package associated with this factory (ex: "com.microstrategy.web.beans").- Specified by:
- getBeanPackagein class- AbstractLocalBeanFactory
- Returns:
- The name of the package associated with this factory.
- Since:
- MicroStrategy Web 9.0.0
 
 - 
createBeanInstanceprotected WebComponent createBeanInstance(java.lang.Class beanClass) throws java.lang.IllegalAccessException, java.lang.InstantiationException Description copied from class:AbstractLocalBeanFactoryCreate an instance ofbeanClass. This implementation simply callsbeanClass.newInstance(). Override this method in a derived class to create instances of non-public bean classes. Throws the same exceptions asClass.newInstance().- Overrides:
- createBeanInstancein 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
 
 
- 
 
-