|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.config.support.DefaultConfigUpgrade
@Service(name="defaultconfigupgrade") public class DefaultConfigUpgrade
Upgrade service to add the default-config if it doesn't exist. 3.0.1 and v2.x developer profile do not have default-config. The data to populate the default-config is taken from glassfish3\glassfish\lib\templates\domain.xml. This class uses the StAX parser and depends on the exact order of the elements in the template, and the original contents of the template when glassfish was installed. The DefaultConfigUpgrade may not work if the template has been changed from its original. TODO: Replace using a simpler, more maintainable approach such as HK2 DOM objects, or having a default for the Config object that creates default-config
| Constructor Summary | |
|---|---|
DefaultConfigUpgrade()
|
|
| Method Summary | |
|---|---|
void |
postConstruct()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultConfigUpgrade()
| Method Detail |
|---|
public void postConstruct()
postConstruct in interface org.jvnet.hk2.component.PostConstruct
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||