Retrieves the #{@link BeanManager} instance via JNDI.

@return The found bean manager instance if found, otherwise null
432147
public static BeanManager getBeanManager() {
        try {
            InitialContext initialContext = new InitialContext();
            return (BeanManager) initialContext.lookup("java:comp/BeanManager");
        } catch (NamingException e) {
            log.log(Level.SEVERE, "Couldn't get BeanManager through JNDI", e);
            return null;
        }
    }
87725
public static FixtureManager getInstance() {

        // Employ a "double-checked locking" strategy because a lock is only
        // needed upon initialization; synchronize on the monitor belonging to
        // the class itself.
        if (null == manager) {
            synchronized (FixtureManager.class) {
                // check again, because the thread might have been preempted
                // just after the outer if was processed but before the
                // synchronized statement was executed
                if (manager == null) {
                    manager = new FixtureManager();
                }
            }
        }
        return manager;
    }
24934
public ContentEntityManager getContentEntityManager() {
        if (contentEntityManager != null) {
            return contentEntityManager;
        }
        contentEntityManager = (ContentEntityManager) ContainerManager.getComponent("contentEntityManager");
        return contentEntityManager;
    }
1001144
@Bean(name = "beanManager")
    @ClientScope
    protected BeanManager createManager(RemotingContext remotingContext) {
        Assert.requireNonNull(remotingContext, "remotingContext");
        return remotingContext.getBeanManager();
    }
921292
public static Manager getManager(ServletContext servletContext) {
		Object managerObject = servletContext.getAttribute(SimonUtils.MANAGER_SERVLET_CTX_ATTRIBUTE);
		Manager manager = null;
		if (managerObject instanceof Manager) {
			manager =(Manager) managerObject;
		}
		return manager;
	}
479708
public BeanId getBeanId() {
        if (ivBeanId == null) {
            ivBeanId = new BeanId(ivBMD.j2eeName, null, false);
        }
        return ivBeanId;
    }
213803
public static SelectManagerJni create()
  {
    try {
      if (! isEnabled()) {
        return null;
      }

      SelectManagerJni pollManager = _jniSelectManager.get();
      
      if (pollManager == null) {
        pollManager = new SelectManagerJni();

        // The start is responsible for checking if the select manager
        // is enabled on this system.
        if (pollManager.start()) {
          _jniSelectManager.set(pollManager);
        }
      }

      return _jniSelectManager.get();
    } catch (ConfigException e) {
      log.finer(e.toString());
    } catch (Throwable e) {
      log.log(Level.FINER, e.toString(), e);
    }

    return null;
  }
254785
private Object createJavaxConnectionManagerProxy(Object javaxConnectionManager) {
		assert javaxConnectionManager != null;
		final InvocationHandler invocationHandler = new ConnectionManagerInvocationHandler(
				javaxConnectionManager);
		return createProxy(javaxConnectionManager, invocationHandler);
	}
483313
public PersistenceManager getPersistenceManager() {
        if (persistenceManager == null) {
            try {
                persistenceManager = getPresentationManager().newPersistenceManager();
            } catch (Exception ex) {
                getPresentationManager().error(ex);
                throw new ConnectionNotFoundException();
            }
        }
        return persistenceManager;
    }
133878
@Override
    public ConsumerManager getConsumerManager()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "getConsumerManager");

        ConsumerManager manager = (ConsumerManager) getOutputHandler();

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getConsumerManager", manager);
        return manager;
    }
849266
public List<FacesConfigManagedBeanType<WebFacesConfigDescriptor>> getAllManagedBean()
   {
      List<FacesConfigManagedBeanType<WebFacesConfigDescriptor>> list = new ArrayList<FacesConfigManagedBeanType<WebFacesConfigDescriptor>>();
      List<Node> nodeList = model.get("managed-bean");
      for(Node node: nodeList)
      {
         FacesConfigManagedBeanType<WebFacesConfigDescriptor>  type = new FacesConfigManagedBeanTypeImpl<WebFacesConfigDescriptor>(this, "managed-bean", model, node);
         list.add(type);
      }
      return list;
   }
521443
public LabelManager getLabelManager() {
        if (labelManager != null) {
            return labelManager;
        }
        labelManager = (LabelManager) ContainerManager.getComponent("labelManager");
        return labelManager;
    }
1155264
public static ResourceManager get() {
    ResourceManager resourceManager = (ResourceManager) instance.get();
    if(null == resourceManager) {
      resourceManager = new ResourceManager();
      instance.set(resourceManager);
    }
    return resourceManager;
  }
1222434
private MBeanServer lookupJolokiaMBeanServer() {
        MBeanServer server = ManagementFactory.getPlatformMBeanServer();
        try {
            return server.isRegistered(JOLOKIA_MBEAN_SERVER_ONAME) ?
                    (MBeanServer) server.getAttribute(JOLOKIA_MBEAN_SERVER_ONAME, "JolokiaMBeanServer") :
                    null;
        } catch (JMException e) {
            throw new IllegalStateException("Internal: Cannot get Jolokia MBeanServer via JMX lookup: " + e, e);
        }
    }
27051
public static ClassLoadInfo classLoadManager() {
        ClassLoadingMXBean classLoadingMXBean = ManagementFactory.getClassLoadingMXBean();
        int nowLoadedClassCount = classLoadingMXBean.getLoadedClassCount();
        long totalLoadedClassCount = classLoadingMXBean.getTotalLoadedClassCount();
        long unloadedClassCount = classLoadingMXBean.getUnloadedClassCount();
        return new ClassLoadInfo(nowLoadedClassCount, totalLoadedClassCount, unloadedClassCount);
    }
1089506
public static function getInstance(): ConnectionManager
	{
		if (self::$instance === NULL)
		{
			self::$instance = new self();
		}

		return self::$instance;
	}
1147433
public ObjectName getSessionManager()
    {
        SessionManager sm=_servletHandler.getSessionManager();
        if (sm==null)
            return null;
        ObjectName[] on=getComponentMBeans(new Object[]{sm},null);
        return on[0];
    }