/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * 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 org.apache.wicket.guice;

import org.apache.wicket.IClusterable;
import org.apache.wicket.MetaDataKey;

import com.google.inject.Injector;

/**
 * This is a holder for the Injector. The reason we need a holder
 * is that metadata only supports storing serializable objects but
 * Injector is not. The holder acts as a serializable wrapper for
 * the context. Notice that although holder implements IClusterable it
 * really is not because it has a reference to non-serializable context -
 * but this is ok because metadata objects in application are never
 * serialized.
 */
class GuiceInjectorHolder implements IClusterable
{
	private static final long serialVersionUID = 1L;

	/**
	 * Metadata key used to store Injector holder in application's
	 * metadata
	 */
	static MetaDataKey INJECTOR_KEY = new MetaDataKey(
			GuiceInjectorHolder.class) {

		private static final long serialVersionUID = 1L;

	};
	
	private final Injector injector;

	/**
	 * Constructor
	 * 
	 * @param context
	 */
	GuiceInjectorHolder(Injector injector) {
		this.injector = injector;
	}

	/**
	 * @return the context
	 */
	Injector getInjector() {
		return injector;
	}
}

@@ -1379,16 +1379,23 @@
 ed.%0A */%0A
+public 
 class Gu
@@ -1436,16 +1436,16 @@
 terable%0A
-
 %7B%0A%09priva
@@ -1577,16 +1577,23 @@
 a%0A%09 */%0A%09
+public 
 static M
@@ -1812,16 +1812,23 @@
 t%0A%09 */%0A%09
+public 
 GuiceInj
@@ -1926,17 +1926,24 @@
 xt%0A%09 */%0A
-
 %09
+public 
 Injector

Allow to reuse GuiceInjectorHolder, see https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/pickwick/src/main/java/org/wicketstuff/pickwick/GuiceWebApplicationFactory.java