Lines 442-448
Link Here
|
442 |
GlassFishVersion version = ServerUtils.getServerVersion( |
442 |
GlassFishVersion version = ServerUtils.getServerVersion( |
443 |
ip.get(GlassfishModule.GLASSFISH_FOLDER_ATTR)); |
443 |
ip.get(GlassfishModule.GLASSFISH_FOLDER_ATTR)); |
444 |
try { |
444 |
try { |
445 |
instance = new GlassfishInstance(ip, version, gip); |
445 |
instance = new GlassfishInstance(ip, version, gip, updateNow); |
446 |
tagUnderConstruction(deployerUri); |
446 |
tagUnderConstruction(deployerUri); |
447 |
if (!instance.isPublicAccess()) { |
447 |
if (!instance.isPublicAccess()) { |
448 |
instance.ic.add(instance.commonSupport); |
448 |
instance.ic.add(instance.commonSupport); |
Lines 760-766
Link Here
|
760 |
|
760 |
|
761 |
@SuppressWarnings("LeakingThisInConstructor") |
761 |
@SuppressWarnings("LeakingThisInConstructor") |
762 |
private GlassfishInstance(Map<String, String> ip, GlassFishVersion version, |
762 |
private GlassfishInstance(Map<String, String> ip, GlassFishVersion version, |
763 |
GlassfishInstanceProvider instanceProvider) { |
763 |
GlassfishInstanceProvider instanceProvider, boolean prepareProperties) { |
764 |
this.version = version; |
764 |
this.version = version; |
765 |
this.process = null; |
765 |
this.process = null; |
766 |
ic = new InstanceContent(); |
766 |
ic = new InstanceContent(); |
Lines 783-789
Link Here
|
783 |
} else { |
783 |
} else { |
784 |
domainXMLListener = null; |
784 |
domainXMLListener = null; |
785 |
} |
785 |
} |
786 |
this.properties = prepareProperties(ip); |
786 |
if (prepareProperties) { |
|
|
787 |
this.properties = prepareProperties(ip); |
788 |
} else { |
789 |
this.properties = new Props(ip); |
790 |
} |
787 |
if (!isPublicAccess()) { |
791 |
if (!isPublicAccess()) { |
788 |
// Add this instance into local lookup (to find instance from |
792 |
// Add this instance into local lookup (to find instance from |
789 |
// node lookup). |
793 |
// node lookup). |