Does eclipse have a feature to automatically generate a singleton of the class upon creating a new class?
As it does for implementing abstract methods of the master class you have defined in the create new class dialog box, can you make it so a class is created like this:
package org.desk.game.model.player.skill;
public final class SkillConfig {
/**
* The singleton.
*/
private static final SkillConfig skillConfig = new SkillConfig();
/**
* Get the singleton instance of this class.
*
* @return the singleton.
*/
public static SkillConfig getInstance() {
return skillConfig;
}
/**
* Default private constructor to prevent instantiation by other classes.
*/
private SkillConfig() {
}
}