当前位置: 首页>>代码示例>>Java>>正文


Java ALEApplicationContext.getBean方法代码示例

本文整理汇总了Java中org.fosstrak.ale.server.ALEApplicationContext.getBean方法的典型用法代码示例。如果您正苦于以下问题:Java ALEApplicationContext.getBean方法的具体用法?Java ALEApplicationContext.getBean怎么用?Java ALEApplicationContext.getBean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.fosstrak.ale.server.ALEApplicationContext的用法示例。


在下文中一共展示了ALEApplicationContext.getBean方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: undefine

import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
@Override
public void undefine(String specName) throws NoSuchNameException {		

	throwNoSuchNameExceptionIfNoSuchSpec(specName);
	
	CCSpec ccspec = reportGeneratorsProvider.get(specName).getCCSpec();
	LogicalReaderManager logicalReaderManager = ALEApplicationContext.getBean(LogicalReaderManager.class);
	
	
	LOG.debug("Recovery ACCESSSPEC of logicalReaders");

	// get LogicalReaderStubs
	if (ccspec.getLogicalReaders() != null) {
		List<String> logicalReaderNames = ccspec.getLogicalReaders().getLogicalReader();
		for (String logicalReaderName : logicalReaderNames) {
			//LOG.debug("retrieving logicalReader " + logicalReaderName);
			LogicalReader logicalReader = logicalReaderManager.getLogicalReader(logicalReaderName);
			
			if (logicalReader != null) {
				LOG.debug("Delete ACCESSSPEC from logicalReader : " + logicalReader.getName());
				logicalReader.DELETEACCESSSPEC();
				logicalReader.recoveryACCESSSPEC3();
			}
		}
	} else {
		LOG.error("CCSpec contains no readers");
	}
	
	reportGeneratorsProvider.remove(specName);
	//persistenceRemoveAPI.removeECSpec(specName);
	//TODO: wdyoon
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:33,代码来源:ALECCImpl.java

示例2: testGetBean

import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
@Test(expected = IllegalStateException.class)
public void testGetBean() {
	ALEApplicationContext.getBean(null);
}
 
开发者ID:Auto-ID-Lab-Japan,项目名称:fosstrak-fc,代码行数:5,代码来源:ALEApplicationContextTest.java

示例3: getManager

import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
public LLRPManager getManager() {
	if(manager == null) {
		manager = ALEApplicationContext.getBean(LLRPManager.class);
	}
	return manager;
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:7,代码来源:ReaderInitiatedLLRPIoHandlerAdapter.java

示例4: getInstance

import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
public static ALEACImpl getInstance() {
	return ALEApplicationContext.getBean(ALEACImpl.class);
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:4,代码来源:ALEACImpl.java

示例5: EventCycleImpl

import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
/**
 * Constructor sets parameter and starts thread.
 * 
 * @param generator to which this event cycle belongs to
 * @throws ImplementationException if an implementation exception occurs
 */
public EventCycleImpl(ReportsGenerator generator) throws ImplementationException {
	this(generator, ALEApplicationContext.getBean(LogicalReaderManager.class));
}
 
开发者ID:Auto-ID-Lab-Japan,项目名称:fosstrak-fc,代码行数:10,代码来源:EventCycleImpl.java

示例6: ReportsGeneratorImpl

import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
/**
 * Constructor validates the ec specification and sets some parameters.
 * 
 * @param name of this reports generator
 * @param spec which defines how the reports of this generator should be build
 * @throws ECSpecValidationException if the ec specification is invalid
 * @throws ImplementationException if an implementation exception occurs
 */
public ReportsGeneratorImpl(String name, ECSpec spec) throws ECSpecValidationException, ImplementationException {
	this(name, spec, ALEApplicationContext.getBean(ECSpecValidator.class), ALEApplicationContext.getBean(ECReportsHelper.class));
	
}
 
开发者ID:Auto-ID-Lab-Japan,项目名称:fosstrak-fc,代码行数:13,代码来源:ReportsGeneratorImpl.java

示例7: CommandCycleImpl

import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
/**
 * Constructor sets parameter and starts thread.
 * 
 * @param generator to which this command cycle belongs to
 * @throws ImplementationException if an implementation exception occurs
 */
public CommandCycleImpl(ReportsGenerator generator) throws ImplementationException {
	this(generator, ALEApplicationContext.getBean(LogicalReaderManager.class));
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:10,代码来源:CommandCycleImpl.java

示例8: createNewReportGenerator

import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
/**
 * creates a new Reports Generator.
 * @param specName the name of the specification.
 * @param spec the specification.
 * @return the new reports generator.
 * @throws ImplementationException internal exception in the implementation.
 * @throws CCSpecValidationException specification is not valid.
 */
public ReportsGenerator createNewReportGenerator(String specName, CCSpec spec) throws CCSpecValidationException, ImplementationException {
	// FIXME: this is far from nice...
	return new ReportsGeneratorImpl(specName, spec, ALEApplicationContext.getBean(CCSpecValidator.class));
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:13,代码来源:ReportsGeneratorsProvider.java


注:本文中的org.fosstrak.ale.server.ALEApplicationContext.getBean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。