Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payara 1531 Implementation of Microprofile Config #1793

Merged
merged 31 commits into from
Jul 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
1693e6c
PAYARA-1531 Initial structure
smillidge Jun 18, 2017
5a7a664
PAYARA-1531 First cut base supporting Payara Service Code
smillidge Jul 2, 2017
e6b47ae
PAYARA-1531 First cust Service with asadmin commands to set propertie…
smillidge Jul 2, 2017
9ef792b
PAYARA-1531 Started to build out the Microprofile compliany Config code
smillidge Jul 2, 2017
c88607e
PAYARA-1531 the most basic ConfigProvider.getConfig().getValue() is w…
smillidge Jul 3, 2017
a266ab1
PAYARA-1531 Refactor, Initial ConfigBuilder and discovery of customer…
smillidge Jul 3, 2017
55e1e39
PAYARA-1531 Added all the default converters and now use them to retu…
smillidge Jul 4, 2017
e07dbb9
PAYARA-1531 Initial structure
smillidge Jun 18, 2017
886fdbf
PAYARA-1531 First cut base supporting Payara Service Code
smillidge Jul 2, 2017
4537ff1
PAYARA-1531 First cust Service with asadmin commands to set propertie…
smillidge Jul 2, 2017
96743dd
PAYARA-1531 Started to build out the Microprofile compliany Config code
smillidge Jul 2, 2017
fc4e44c
PAYARA-1531 the most basic ConfigProvider.getConfig().getValue() is w…
smillidge Jul 3, 2017
aee7e8f
PAYARA-1531 Refactor, Initial ConfigBuilder and discovery of customer…
smillidge Jul 3, 2017
03d4e4c
PAYARA-1531 Added all the default converters and now use them to retu…
smillidge Jul 4, 2017
e550354
PAYARA-1531 Ensure discovered ConfigProvider also provide ConfigSourc…
smillidge Jul 5, 2017
bbd4d34
PAYARA-1531 initial code for CDI extension
smillidge Jul 8, 2017
6bafab6
PAYARA-1531 Merge branch 'PAYARA-1531' of github.com:smillidge/Payara…
smillidge Jul 8, 2017
73f9ab9
PAYARA-1531 Working injection of basic types and custom converters. N…
smillidge Jul 8, 2017
d12470f
PAYARA-1531 version of the code ready for testing with the TCK
smillidge Jul 8, 2017
33ee276
PAYARA-1531 Added a JNDI config source that reads properties from JNDI
smillidge Jul 8, 2017
d4258a0
PAYARA-1531 added default converter for URL and InetAddress
smillidge Jul 8, 2017
d4990f5
PAYARA-1531 Added config source which provides some properties which …
smillidge Jul 8, 2017
8de7b76
PAYARA-1531 package up microprofile into Payara Server
smillidge Jul 11, 2017
3b9e762
PAYARA-1531 passes TCK bar some skipped tests that need investigation
smillidge Jul 19, 2017
3dbd126
PAYARA-1531 enable modification of properties which are currently not…
smillidge Jul 24, 2017
26e7f17
PAYARA-1531 Upgrade to released microprofile. Ensure deployment failu…
smillidge Jul 27, 2017
94527b2
Merge branch 'master' into PAYARA-1531
Pandrex247 Jul 28, 2017
19bee95
Merge branch 'master' into PAYARA-1531
Pandrex247 Jul 28, 2017
84a1d93
PAYARA-1531 Search all modules for the current classloader when worki…
smillidge Jul 28, 2017
c579553
PAYARA-1531 rework empty property name handling and handle primitive …
smillidge Jul 30, 2017
3d41d33
Merge branch 'master' into PAYARA-1531
smillidge Jul 30, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ standalone.ColWeight=LB Weight

standaloneInstanceNew.PageTitle=New Payara Server Instance
standaloneInstanceNew.PageTitleHelp=Create a Payara Server instance.
standaloneInstancePropertiesPageTitleHelp=

standalone.ApplicationsTitle=Applications
standalone.ApplicationsTitleHelp=Deploy, undeploy, enable, disable, and remove selected applications associated with the instance. Removing the application only removes the application from this instance. The application is not undeployed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</event>
<sun:form id="propertyForm">
#include "/cluster/standalone/standaloneInstanceTabs.inc"
<sun:title id="propertyContentPage" title="$resource{i18ncs.PropertiesTitle}" >
<sun:title id="propertyContentPage" title="$resource{i18ncs.PropertiesTitle}" helpText="$resource{i18nc.microprofile.properties.description}">
#include "/cluster/shared/instancePropertiesButtons.jsf"
</sun:title>
#include "/common/shared/alertMsg_1.inc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
only if the new code is made subject to such option by the copyright
holder.

Portions Copyright [2017] [Payara Foundation and/or its affiliates]
-->

<!-- appServer/domainTabs.jsf -->
Expand All @@ -49,6 +50,12 @@
gf.redirect(page="#{request.contextPath}/common/appServer/serverInstDomainAttrs.jsf");
/>
</sun:tab>
<sun:tab id="domainProps" immediate="true" text="$resource{i18nc.headings.DomainProperties}" toolTip="$resource{i18nc.headings.DomainPropertiesTab}">
<!command
setSessionAttribute(key="domainTabs" value="domainProps");
gf.redirect(page="#{request.contextPath}/common/appServer/serverInstDomainProps.jsf");
/>
</sun:tab>
<sun:tab id="appConfig" immediate="true" text="$resource{i18n.headings.AppConfig}" toolTip="$resource{i18n.headings.AppConfigTab}" >
<!command
setSessionAttribute(key="domainTabs" value="appConfig");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
only if the new code is made subject to such option by the copyright
holder.

Portions Copyright [2017] [Payara Foundation and/or its affiliates]
-->

<!initPage
Expand Down Expand Up @@ -70,7 +71,7 @@
</event>
<sun:form id="propertyForm">
#include "/common/appServer/serverInstTabs.inc"
<sun:title id="propertyContentPage" title="$resource{i18nc.instanceProperties.PropertiesTitle}" >
<sun:title id="propertyContentPage" title="$resource{i18nc.instanceProperties.PropertiesTitle}" helpText="$resource{i18nc.microprofile.properties.description}" >
#include "/common/appServer/instancePropertiesButtons.jsf"
</sun:title>
#include "/common/shared/alertMsg.inc"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!--

DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

Copyright (c) 2010-2011 Oracle and/or its affiliates. All rights reserved.

The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can
obtain a copy of the License at
https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
or packager/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.

When distributing the software, include this License Header Notice in each
file and include the License file at packager/legal/LICENSE.txt.

GPL Classpath Exception:
Oracle designates this particular file as subject to the "Classpath"
exception as provided by Oracle in the GPL Version 2 section of the License
file that accompanied this code.

Modifications:
If applicable, add the following below the License Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyright [year] [name of copyright owner]"

Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.

Portions Copyright [2017] [Payara Foundation and/or its affiliates]
-->

<!initPage
setResourceBundle(key="i18n" bundle="org.glassfish.admingui.core.Strings")
setResourceBundle(key="i18nc" bundle="org.glassfish.common.admingui.Strings")
setResourceBundle(key="help_common" bundle="org.glassfish.common.admingui.Helplinks");
/>
<!-- i18n -->
<!composition template="/templates/default.layout" guiTitle="$resource{i18nc.domain.DomainPropsPageTitle}" >
<!define name="content">
<event>
<!beforeCreate
setPageSessionAttribute(key="rest-api" value="true");
setPageSessionAttribute(key="edit" value="#{true}" );
setPageSessionAttribute(key="hasPropertyTable" value="#{true}" );
setPageSessionAttribute(key="showDefaultButton" value="#{false}" );
setPageSessionAttribute(key="selfPage", value="#{request.contextPath}/common/appServer/serverInstDomainProps.jsf?");

setPageSessionAttribute(key="selfUrl", value="#{sessionScope.REST_URL}");
gf.restRequest(endpoint="#{sessionScope.REST_URL}/property", method="GET", result="#{requestScope.propTable}");
setPageSessionAttribute(key="tableList", value="#{requestScope.propTable.data.extraProperties.properties}");
/>
</event>
<sun:form id="propertyForm">
#include "/common/appServer/domainTabs.inc"
<sun:title id="propertyContentPage" title="$resource{i18nc.domain.DomainPropsPageTitle}" helpText="$resource{i18nc.domain.DomainPropsPageTitleHelp}" >
#include "/common/appServer/instancePropertiesButtons.jsf"
</sun:title>
#include "/common/shared/alertMsg.inc"
#include "/common/shared/nameSection.inc"
#include "/common/shared/propertyDescTable.inc"

<sun:title id="bottomTitle">
#include "/common/appServer/instancePropertiesButtons.jsf"
</sun:title>

<sun:hidden id="helpKey" value="$resource{help_common.instanceProperties}" />

</sun:form>
#include "/common/shared/changeButtonsJS.inc"
</define>
</composition>
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,10 @@
gf.redirect(page="#{request.contextPath}/common/applications/targetListing.jsf?appName=#{pageSession.encodedAppName}&listPageLink=#{pageSession.listPageLink}");
/>
</sun:tab>
<sun:tab id="propertiesTab" rendered="true" immediate="true" text="$resource{i18nc.headings.ApplicationProperties}" toolTip="$resource{i18nc.headings.ApplicationPropertiesTab}">
<!command
setSessionAttribute(key="appGeneralTabs" value="propertiesTab");
gf.redirect(page="#{request.contextPath}/common/applications/appProperties.jsf?appName=#{pageSession.encodedAppName}&listPageLink=#{pageSession.listPageLink}");
/>
</sun:tab>
</sun:tabSet>
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<!--

DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

Copyright (c) 2010-2011 Oracle and/or its affiliates. All rights reserved.

The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can
obtain a copy of the License at
https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
or packager/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.

When distributing the software, include this License Header Notice in each
file and include the License file at packager/legal/LICENSE.txt.

GPL Classpath Exception:
Oracle designates this particular file as subject to the "Classpath"
exception as provided by Oracle in the GPL Version 2 section of the License
file that accompanied this code.

Modifications:
If applicable, add the following below the License Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyright [year] [name of copyright owner]"

Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.

Portions Copyright [2017] [Payara Foundation and/or its affiliates]
-->

<!initPage
setResourceBundle(key="i18n" bundle="org.glassfish.admingui.core.Strings")
setResourceBundle(key="i18nc" bundle="org.glassfish.common.admingui.Strings")
setResourceBundle(key="help_common" bundle="org.glassfish.common.admingui.Helplinks");
/>
<!-- i18n -->
<!composition template="/templates/default.layout" guiTitle="$resource{i18nc.domain.DomainPropsPageTitle}" >
<!define name="content">
<event>
<!beforeCreate
getRequestValue(key="appName" value="#{pageSession.appName}");
urlencode(value="#{pageSession.appName}" encoding="UTF-8" result="#{pageSession.encodedAppName}");
setPageSessionAttribute(key="rest-api" value="true");
setPageSessionAttribute(key="edit" value="#{true}" );
setPageSessionAttribute(key="hasPropertyTable" value="#{true}" );
setPageSessionAttribute(key="showDefaultButton" value="#{false}" );
setPageSessionAttribute(key="selfPage", value="#{request.contextPath}/common/applications/appProperties.jsf?appName=#{pageSession.encodedAppName}&listPageLink=#{pageSession.listPageLink}");

setPageSessionAttribute(key="selfUrl", value="#{sessionScope.REST_URL}/applications/application/#{pageSession.encodedAppName}");
gf.restRequest(endpoint="#{sessionScope.REST_URL}/applications/application/#{pageSession.encodedAppName}/property", method="GET", result="#{requestScope.propTable}");
setPageSessionAttribute(key="tableList", value="#{requestScope.propTable.data.extraProperties.properties}");
/>
</event>
<sun:form id="propertyForm">
#include "/common/applications/appGeneralTabs.inc"
<sun:title id="propertyContentPage" title="$resource{i18nc.applications.ApplicationPropsPageTitle}" helpText="$resource{i18nc.applications.ApplicationPropsPageTitleHelp}" >
#include "/common/appServer/instancePropertiesButtons.jsf"
</sun:title>
#include "/common/shared/alertMsg.inc"
#include "/common/shared/nameSection.inc"
#include "/common/shared/propertyDescTable.inc"

<sun:title id="bottomTitle">
#include "/common/appServer/instancePropertiesButtons.jsf"
</sun:title>

<sun:hidden id="helpKey" value="$resource{help_common.instanceProperties}" />

</sun:form>
#include "/common/shared/changeButtonsJS.inc"
</define>
</composition>
Loading