@Test public void testGetBean() throws Exception { Object bean = acl.getBean("tokenService"); assertEquals(bean.getClass().getName(), FakeTokenClient.class.getName()); }
public <T> T getBean(String beanName) { if (beanName == null) { throw new IllegalArgumentException("Argument 'beanName' is null"); } return (T) _beanFactory.getBean(beanName); }
SysPropApplicationContextLoader { public <T> T getBean(String beanName) { if (beanName == null) { throw new IllegalArgumentException("Argument 'beanName' is null"); } return (T) _beanFactory.getBean(beanName); } }
SysPropApplicationContextLoader { public <T> T getBean(String beanName) { if (beanName == null) { throw new IllegalArgumentException("Argument 'beanName' is null"); } return (T) _beanFactory.getBean(beanName); } SysPropApplicationContextLoader(String appContextFile);  SysPropApplicationContextLoader(String appContextFile, boolean loadDefinitionOnStartup); }
SysPropApplicationContextLoader { public <T> T getBean(String beanName) { if (beanName == null) { throw new IllegalArgumentException("Argument 'beanName' is null"); } return (T) _beanFactory.getBean(beanName); } SysPropApplicationContextLoader(String appContextFile);  SysPropApplicationContextLoader(String appContextFile, boolean loadDefinitionOnStartup); void loadAppContext(String appContextFile, boolean loadDefinitionOnStartup); String getApplicationContextFile(); T getBean(String beanName); }
SysPropApplicationContextLoader { public <T> T getBean(String beanName) { if (beanName == null) { throw new IllegalArgumentException("Argument 'beanName' is null"); } return (T) _beanFactory.getBean(beanName); } SysPropApplicationContextLoader(String appContextFile);  SysPropApplicationContextLoader(String appContextFile, boolean loadDefinitionOnStartup); void loadAppContext(String appContextFile, boolean loadDefinitionOnStartup); String getApplicationContextFile(); T getBean(String beanName);  }