org.rhq.enterprise.server.util
Class LookupUtil

java.lang.Object
  extended by org.rhq.enterprise.server.util.LookupUtil

public final class LookupUtil
extends Object

Methods that allow POJO objects to obtain references to EJB/JPA objects. These convenience methods attempt to minimize the amount of exception handling required by throwing runtime exceptions for the cases where there are no easy recovery options.

Author:
John Mazzitelli, Ian Springer

Method Summary
static AccessLocal getAccessLocal()
           
static AlertConditionConsumerBean getActiveConditionConsumer()
           
static CachedConditionProducerBean getActiveConditionProducer()
           
static AdvisoryManagerLocal getAdvisoryManagerLocal()
           
static AffinityGroupManagerLocal getAffinityGroupManager()
           
static AgentManagerLocal getAgentManager()
           
static AlertConditionCacheManagerLocal getAlertConditionCacheManager()
           
static AlertConditionManagerLocal getAlertConditionManager()
           
static AlertDefinitionManagerLocal getAlertDefinitionManager()
           
static AlertManagerLocal getAlertManager()
           
static AlertNotificationManagerLocal getAlertNotificationManager()
           
static AlertSubsystemManagerLocal getAlertSubsystemManager()
           
static AlertTemplateManagerLocal getAlertTemplateManager()
           
static AlertTemplateTestLocal getAlertTemplateTestBean()
           
static AuthorizationManagerLocal getAuthorizationManager()
           
static AvailabilityManagerLocal getAvailabilityManager()
           
static BundleManagerLocal getBundleManager()
           
static CacheConsistencyManagerLocal getCacheConsistenyManager()
           
static CachedConditionProducerLocal getCachedConditionProducerLocal()
           
static CallTimeDataManagerLocal getCallTimeDataManager()
           
static CloudManagerLocal getCloudManager()
           
static ClusterManagerLocal getClusterManager()
           
static ConfigurationManagerLocal getConfigurationManager()
           
static ConfigurationMetadataManagerLocal getConfigurationMetadataManager()
           
static ConfigurationSubsystemManagerLocal getConfigurationSubsystemManager()
           
static ContentManagerLocal getContentManager()
           
static ContentSourceManagerLocal getContentSourceManager()
           
static ContentSourceMetadataManagerLocal getContentSourceMetadataManager()
           
static ContentUIManagerLocal getContentUIManager()
           
static CoreServerMBean getCoreServer()
           
static CoreTestLocal getCoreTest()
           
static DashboardManagerLocal getDashboardManagerLocal()
           
static DataAccessManagerLocal getDataAccessManager()
           
static DataSource getDataSource()
          Returns the main data source that can be used to directly access the database.
static DiscoveryBossLocal getDiscoveryBoss()
           
static DiscoveryTestLocal getDiscoveryTest()
           
static DistributionManagerLocal getDistributionManagerLocal()
           
static DriftManagerLocal getDriftManager()
           
static DriftTemplateManagerLocal getDriftTemplateManager()
           
static DynamicConfigurationPropertyLocal getDynamicConfigurationProperty()
           
static EmailManagerLocal getEmailManagerBean()
           
static EntitlementManagerLocal getEntitlementManagerBean()
           
static javax.persistence.EntityManager getEntityManager()
          Creates and returns an EntityManager that allows you to perform JPA operations.
static EntityManagerFacadeLocal getEntityManagerFacade()
           
static EventManagerLocal getEventManager()
           
static FailoverListManagerLocal getFailoverListManager()
           
static GroupAlertDefinitionManagerLocal getGroupAlertDefinitionManager()
           
static GroupDefinitionExpressionBuilderManagerLocal getGroupDefinitionExpressionBuilderManager()
           
static GroupDefinitionManagerLocal getGroupDefinitionManager()
           
static InventoryManagerLocal getInventoryManager()
           
static JPADriftServerLocal getJPADriftServer()
           
static LdapGroupManagerLocal getLdapGroupManager()
           
static MeasurementBaselineManagerLocal getMeasurementBaselineManager()
           
static MeasurementChartsManagerLocal getMeasurementChartsManager()
           
static MeasurementCompressionManagerLocal getMeasurementCompressionManager()
           
static MeasurementDataManagerLocal getMeasurementDataManager()
           
static MeasurementDefinitionManagerLocal getMeasurementDefinitionManager()
           
static MeasurementProblemManagerLocal getMeasurementProblemManager()
           
static MeasurementScheduleManagerLocal getMeasurementScheduleManager()
           
static MeasurementTestLocal getMeasurementTest()
           
static MeasurementViewManagerLocal getMeasurementViewManager()
           
static MeasurementOOBManagerLocal getOOBManager()
           
static OperationHistorySubsystemManagerLocal getOperationHistorySubsystemManager()
           
static OperationManagerLocal getOperationManager()
           
static PartitionEventManagerLocal getPartitionEventManager()
           
static PerspectiveManagerLocal getPerspectiveManager()
           
static PluginDeploymentScannerMBean getPluginDeploymentScanner()
           
static PluginManagerLocal getPluginManager()
           
static ProductVersionManagerLocal getProductVersionManager()
           
static RemoteInstallManagerLocal getRemoteInstallManager()
           
static RepoManagerLocal getRepoManagerLocal()
           
static ResourceAvailabilityManagerLocal getResourceAvailabilityManager()
           
static ResourceBossLocal getResourceBoss()
           
static ResourceFactoryManagerLocal getResourceFactoryManager()
           
static ResourceGroupManagerLocal getResourceGroupManager()
           
static ResourceGroupTestBeanLocal getResourceGroupTestBean()
           
static ResourceManagerLocal getResourceManager()
           
static ResourceMetadataManagerLocal getResourceMetadataManager()
           
static ResourceTypeManagerLocal getResourceTypeManager()
           
static ResourceTypeManagerRemote getResourceTypeManagerRemote()
           
static RoleManagerLocal getRoleManager()
           
static SavedSearchManagerLocal getSavedSearchManager()
           
static SchedulerLocal getSchedulerBean()
           
static ServerManagerLocal getServerManager()
           
static ServerPluginsLocal getServerPlugins()
           
static ServerPluginServiceManagement getServerPluginService()
           
static StatusManagerLocal getStatusManager()
           
static SubjectManagerLocal getSubjectManager()
           
static SubjectRoleTestBeanLocal getSubjectRoleTestBean()
           
static SupportManagerLocal getSupportManager()
           
static SynchronizationManagerLocal getSynchronizationManager()
           
static SystemManagerLocal getSystemManager()
           
static TagManagerLocal getTagManager()
           
static TransactionManager getTransactionManager()
          Returns the transaction manager that you can use for your own managed transactions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDataSource

public static DataSource getDataSource()
Returns the main data source that can be used to directly access the database.

Returns:
a transactional data source to connect to the database

getTransactionManager

public static TransactionManager getTransactionManager()
Returns the transaction manager that you can use for your own managed transactions. Use this sparingly and only inside code that is outside of any CMT-scoped objects.

Returns:
the transaction manager

getEntityManager

public static javax.persistence.EntityManager getEntityManager()
Creates and returns an EntityManager that allows you to perform JPA operations.

Returns:
a unique entity manager object
Throws:
RuntimeException - if failed to get the entity manager for some reason

getActiveConditionProducer

public static CachedConditionProducerBean getActiveConditionProducer()

getActiveConditionConsumer

public static AlertConditionConsumerBean getActiveConditionConsumer()

getAgentManager

public static AgentManagerLocal getAgentManager()

getAlertConditionCacheManager

public static AlertConditionCacheManagerLocal getAlertConditionCacheManager()

getAlertConditionManager

public static AlertConditionManagerLocal getAlertConditionManager()

getAlertDefinitionManager

public static AlertDefinitionManagerLocal getAlertDefinitionManager()

getGroupAlertDefinitionManager

public static GroupAlertDefinitionManagerLocal getGroupAlertDefinitionManager()

getAlertManager

public static AlertManagerLocal getAlertManager()

getAlertNotificationManager

public static AlertNotificationManagerLocal getAlertNotificationManager()

getAlertTemplateManager

public static AlertTemplateManagerLocal getAlertTemplateManager()

getAlertSubsystemManager

public static AlertSubsystemManagerLocal getAlertSubsystemManager()

getAlertTemplateTestBean

public static AlertTemplateTestLocal getAlertTemplateTestBean()

getAuthorizationManager

public static AuthorizationManagerLocal getAuthorizationManager()

getAvailabilityManager

public static AvailabilityManagerLocal getAvailabilityManager()

getBundleManager

public static BundleManagerLocal getBundleManager()

getCallTimeDataManager

public static CallTimeDataManagerLocal getCallTimeDataManager()

getConfigurationManager

public static ConfigurationManagerLocal getConfigurationManager()

getDynamicConfigurationProperty

public static DynamicConfigurationPropertyLocal getDynamicConfigurationProperty()

getConfigurationSubsystemManager

public static ConfigurationSubsystemManagerLocal getConfigurationSubsystemManager()

getContentManager

public static ContentManagerLocal getContentManager()

getContentUIManager

public static ContentUIManagerLocal getContentUIManager()

getDiscoveryBoss

public static DiscoveryBossLocal getDiscoveryBoss()

getEmailManagerBean

public static EmailManagerLocal getEmailManagerBean()

getEntitlementManagerBean

public static EntitlementManagerLocal getEntitlementManagerBean()

getEntityManagerFacade

public static EntityManagerFacadeLocal getEntityManagerFacade()

getEventManager

public static EventManagerLocal getEventManager()

getFailoverListManager

public static FailoverListManagerLocal getFailoverListManager()

getGroupDefinitionManager

public static GroupDefinitionManagerLocal getGroupDefinitionManager()

getGroupDefinitionExpressionBuilderManager

public static GroupDefinitionExpressionBuilderManagerLocal getGroupDefinitionExpressionBuilderManager()

getMeasurementDefinitionManager

public static MeasurementDefinitionManagerLocal getMeasurementDefinitionManager()

getMeasurementScheduleManager

public static MeasurementScheduleManagerLocal getMeasurementScheduleManager()

getMeasurementDataManager

public static MeasurementDataManagerLocal getMeasurementDataManager()

getMeasurementChartsManager

public static MeasurementChartsManagerLocal getMeasurementChartsManager()

getMeasurementCompressionManager

public static MeasurementCompressionManagerLocal getMeasurementCompressionManager()

getMeasurementProblemManager

public static MeasurementProblemManagerLocal getMeasurementProblemManager()

getMeasurementViewManager

public static MeasurementViewManagerLocal getMeasurementViewManager()

getMeasurementBaselineManager

public static MeasurementBaselineManagerLocal getMeasurementBaselineManager()

getOOBManager

public static MeasurementOOBManagerLocal getOOBManager()

getOperationManager

public static OperationManagerLocal getOperationManager()

getOperationHistorySubsystemManager

public static OperationHistorySubsystemManagerLocal getOperationHistorySubsystemManager()

getPartitionEventManager

public static PartitionEventManagerLocal getPartitionEventManager()

getConfigurationMetadataManager

public static ConfigurationMetadataManagerLocal getConfigurationMetadataManager()

getContentSourceMetadataManager

public static ContentSourceMetadataManagerLocal getContentSourceMetadataManager()

getContentSourceManager

public static ContentSourceManagerLocal getContentSourceManager()

getDriftManager

public static DriftManagerLocal getDriftManager()

getDriftTemplateManager

public static DriftTemplateManagerLocal getDriftTemplateManager()

getJPADriftServer

public static JPADriftServerLocal getJPADriftServer()

getRepoManagerLocal

public static RepoManagerLocal getRepoManagerLocal()

getDistributionManagerLocal

public static DistributionManagerLocal getDistributionManagerLocal()

getAdvisoryManagerLocal

public static AdvisoryManagerLocal getAdvisoryManagerLocal()

getAffinityGroupManager

public static AffinityGroupManagerLocal getAffinityGroupManager()

getCloudManager

public static CloudManagerLocal getCloudManager()

getClusterManager

public static ClusterManagerLocal getClusterManager()

getServerManager

public static ServerManagerLocal getServerManager()

getCacheConsistenyManager

public static CacheConsistencyManagerLocal getCacheConsistenyManager()

getRemoteInstallManager

public static RemoteInstallManagerLocal getRemoteInstallManager()

getPluginManager

public static PluginManagerLocal getPluginManager()

getResourceMetadataManager

public static ResourceMetadataManagerLocal getResourceMetadataManager()

getResourceBoss

public static ResourceBossLocal getResourceBoss()

getResourceGroupManager

public static ResourceGroupManagerLocal getResourceGroupManager()

getResourceManager

public static ResourceManagerLocal getResourceManager()

getResourceAvailabilityManager

public static ResourceAvailabilityManagerLocal getResourceAvailabilityManager()

getResourceFactoryManager

public static ResourceFactoryManagerLocal getResourceFactoryManager()

getResourceTypeManager

public static ResourceTypeManagerLocal getResourceTypeManager()

getResourceTypeManagerRemote

public static ResourceTypeManagerRemote getResourceTypeManagerRemote()

getRoleManager

public static RoleManagerLocal getRoleManager()

getSchedulerBean

public static SchedulerLocal getSchedulerBean()

getSavedSearchManager

public static SavedSearchManagerLocal getSavedSearchManager()

getSubjectManager

public static SubjectManagerLocal getSubjectManager()

getSubjectRoleTestBean

public static SubjectRoleTestBeanLocal getSubjectRoleTestBean()

getSystemManager

public static SystemManagerLocal getSystemManager()

getPerspectiveManager

public static PerspectiveManagerLocal getPerspectiveManager()

getProductVersionManager

public static ProductVersionManagerLocal getProductVersionManager()

getCachedConditionProducerLocal

public static CachedConditionProducerLocal getCachedConditionProducerLocal()

getSupportManager

public static SupportManagerLocal getSupportManager()

getStatusManager

public static StatusManagerLocal getStatusManager()

getServerPlugins

public static ServerPluginsLocal getServerPlugins()

getTagManager

public static TagManagerLocal getTagManager()

getInventoryManager

public static InventoryManagerLocal getInventoryManager()

getDashboardManagerLocal

public static DashboardManagerLocal getDashboardManagerLocal()

getSynchronizationManager

public static SynchronizationManagerLocal getSynchronizationManager()

getCoreServer

public static CoreServerMBean getCoreServer()

getPluginDeploymentScanner

public static PluginDeploymentScannerMBean getPluginDeploymentScanner()

getServerPluginService

public static ServerPluginServiceManagement getServerPluginService()

getAccessLocal

public static AccessLocal getAccessLocal()

getCoreTest

public static CoreTestLocal getCoreTest()

getDiscoveryTest

public static DiscoveryTestLocal getDiscoveryTest()

getMeasurementTest

public static MeasurementTestLocal getMeasurementTest()

getResourceGroupTestBean

public static ResourceGroupTestBeanLocal getResourceGroupTestBean()

getDataAccessManager

public static DataAccessManagerLocal getDataAccessManager()

getLdapGroupManager

public static LdapGroupManagerLocal getLdapGroupManager()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.