PageRenderTime 925ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/gwtcx/samples/sample-gxt-basic-project/src/main/java/com/kiahu/sample/server/guice/BasicProjectGuiceServletContextListener.java

http://gwt-cx.googlecode.com/
Java | 27 lines | 10 code | 4 blank | 13 comment | 0 complexity | dbad38015abac3665e78695fcd4d7f13 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * (C) Copyright 2012 Kiahu
  3. *
  4. * Licensed under the terms of the GNU General Public License version 3
  5. * as published by the Free Software Foundation. You may obtain a copy of the
  6. * License at: http://www.gnu.org/copyleft/gpl.html
  7. *
  8. * Unless required by applicable law or agreed to in writing, software
  9. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  10. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  11. * License for the specific language governing permissions and limitations
  12. * under the License.
  13. */
  14. package com.kiahu.sample.server.guice;
  15. import com.google.inject.Guice;
  16. import com.google.inject.Injector;
  17. import com.google.inject.servlet.GuiceServletContextListener;
  18. public class BasicProjectGuiceServletContextListener extends GuiceServletContextListener {
  19. @Override
  20. protected Injector getInjector() {
  21. return Guice.createInjector(new BasicProjectServerModule(), new BasicProjectServletModule());
  22. }
  23. }