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