Examples of MonitorServiceImpl


Examples of org.playorm.monitor.impl.MonitorServiceImpl

public class MonitorServiceFactoryImpl extends MonitorServiceFactory {

  @Override
  protected MonitorService createService(Map<String, Object> properties) {
    Injector injector = Guice.createInjector(new MonitorProdBindings(properties));
    MonitorServiceImpl impl = injector.getInstance(MonitorServiceImpl.class);
   
    Object factoryObj = properties.get(MonitorServiceFactory.NOSQL_MGR_FACTORY);
    if(factoryObj == null)
      throw new IllegalArgumentException("NOSQL_MGR_FACTORY is required and must be set");
    else if(!(factoryObj instanceof NoSqlEntityManagerFactory))
      throw new IllegalArgumentException("NOSQL_MGR_FACTORY is not an instance of NoSqlEntityManagerFactory");
    NoSqlEntityManagerFactory factory = (NoSqlEntityManagerFactory) factoryObj;
    impl.setFactory(factory);
    return impl;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.