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
AdminBeanFactory
is a factory class for instantiating beans in thecom.microstrategy.web.admin.beans
package. Note that most methods on this class are deprecated; we now provide theBeanFactory
class for programmatic bean creation. Please create beans using theBeanFactory
instead of using this class directly.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected WebComponent
createBeanInstance(java.lang.Class beanClass)
Create an instance ofbeanClass
.static java.lang.Class
getBeanInterface(int appBeanType)
Deprecated.Reference bean interface classes directly rather than calling this method.protected java.lang.String
getBeanPackage()
Returns the full name of the package associated with this factory (ex: "com.microstrategy.web.beans").static AdminBeanFactory
getInstance()
Returns an instance of the AdminBeanFactory object.AdminBean
newAdminBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.AppComponent
newAppAdminBean(int appBeanType)
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.DiagnosticsBean
newDiagnosticsBean()
Deprecated.UseBeanFactory.newBean(java.lang.String)
instead.-
Methods inherited from class com.microstrategy.web.beans.AbstractLocalBeanFactory
canCreateBean, getBeanClassName, newBean
-
-
-
-
Method Detail
-
newAppAdminBean
public 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
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
public 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 aAdminBean
object. Note that the returned bean will not be initialized with an event handler.- Returns:
- A
AdminBean
instance
-
newDiagnosticsBean
public 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 aDiagnosticsBean
object. Note that the returned bean will not be initialized with an event handler.- Returns:
- A
DiagnosticsBean
instance
-
getBeanInterface
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 theReflectionHelper
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 classAbstractLocalBeanFactory
- 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 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:
createBeanInstance
in classAbstractLocalBeanFactory
- 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
-
-