java - How to create an alias for a private inner class (using XStream)? -


I'm making nickname for long class names ... it works perfectly well, but the serial key One of the classrooms is private. Internal orbit I can not think of a way to make a surname other than making it public, I do not like this solution, because it should not be public in the first place. But making aliases for this will help to change the names of packages and class names without modifying xml files (because the first tag is fully qualified category name).

In this way I am making nickname:

  xstreamInstance.alias ("Class Alayas", OuterClass.InnerClassToAlias.class);  

That's why I need public access in that internal classroom.

Therefore, if anyone knows the name of a private inner class, then I really want to hear about it. You can write about the

You can create a class like the following and the alias method for xstreamInstance

  the parents of the public class {public zero Surname (Xstream X) {x.alias ("Kidi", parent, child class); } Private class child {}}  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -