Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.wicketstuff.springreference.examples;

Example service used by AbstractPrivatePage. The special about this class is the lack of public constructor. Instantiation is done with the static create() method. Dynamic proxies do not work with these kind of classes. This class is instantiated in applicationContext.xml. For more info see AbstractPrivatePage.

public class PrivateService
	private PrivateService()
	public static PrivateService create()
		return new PrivateService();
	public String getMessage()
		return "Message from " + getClass();
New to GrepCode? Check out our FAQ X