本文整理汇总了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
}
示例2: testGetBean
import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
@Test(expected = IllegalStateException.class)
public void testGetBean() {
ALEApplicationContext.getBean(null);
}
示例3: getManager
import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
public LLRPManager getManager() {
if(manager == null) {
manager = ALEApplicationContext.getBean(LLRPManager.class);
}
return manager;
}
示例4: getInstance
import org.fosstrak.ale.server.ALEApplicationContext; //导入方法依赖的package包/类
public static ALEACImpl getInstance() {
return ALEApplicationContext.getBean(ALEACImpl.class);
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}