Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.wicketstuff.springreference.examples;
 
Example service used by AbstractFinalPage. The special about this class is the doPublicProtectedFinal() method which is public final and its implementation calls doProtected() a protected method. Calling doPublicProtectedFinal() on a dynamic proxy will fail. Note that calling all other methods, even doPublicProtectedFinal2() works. This class is instantiated in applicationContext.xml. For more info see AbstractFinalPage.

Author(s):
akiraly
public class FinalService
	private static final Logger LOGGER = LoggerFactory.getLogger(FinalService.class);
	private void doPrivate()
	{
		.info("doPrivate");
	}
	protected void doProtected()
	{
		.info("doProtected");
	}
	public void doPublic()
	{
		.info("doPublic");
	}
	public final void doPublicFinal()
	{
		.info("doPublicFinal");
	}
	public final void doPublicPrivateFinal()
	{
		.info("doPublicPrivateFinal");
	}
	public void doPublicProtected()
	{
		.info("doPublicProtected");
	}

The "special" method that fails with dynamic proxies.
	public final void doPublicProtectedFinal()
	{
		.info("doPublicProtectedFinal");
	}
	public void doPublicProtectedFinal2()
	{
		.info("doPublicProtectedFinal2");
	}
New to GrepCode? Check out our FAQ X