Package javango.contrib.compat

Source Code of javango.contrib.compat.Settings

package javango.contrib.compat;

import java.util.ArrayList;
import java.util.List;

import com.google.inject.Injector;
import com.google.inject.Module;

import javango.api.BaseSettings;
import javango.contrib.compat.Static;
import javango.contrib.hibernate.HibernateModule;

public abstract class Settings extends BaseSettings {

  @Override
  public Injector createInjector(List<Module> moduleList) {
    if (moduleList == null) {
      moduleList = new ArrayList<Module>();
    }
   
    moduleList.add(new HibernateModule());
   
    Static.init(this, super.createInjector(moduleList));
    return Static.getInjector();
  }

}
TOP

Related Classes of javango.contrib.compat.Settings

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.