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-1402-Upgrade-HK2-to-2.5.0 #1393

Merged
merged 4 commits into from
Jun 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -40,7 +40,7 @@
holder.

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

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.1" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">

Expand Down Expand Up @@ -327,7 +327,7 @@
javax.servlet.jsp.jar
jspcaching-connector.jar
web-glue.jar
bean-validator.jar
hibernate-validator-payara-p1.jar
javax.ejb.jar
javax.enterprise.deploy-api.jar
javax.jms-api.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* When distributing the software, include this License Header Notice in each
* file and include the License file at packager/legal/LICENSE.txt.
-->
<!-- Portions Copyright [2016] [Payara Foundation] -->
<!-- // Portions Copyright [2016-2017] [Payara Foundation and/or its affiliates] -->

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.1" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">

Expand Down Expand Up @@ -309,7 +309,7 @@
javax.servlet.jsp.jar
jspcaching-connector.jar
web-glue.jar
bean-validator.jar
hibernate-validator-payara-p1.jar
javax.ejb.jar
javax.enterprise.deploy-api.jar
javax.jms-api.jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,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]

package com.sun.enterprise.resource.deployer;

Expand Down Expand Up @@ -336,6 +337,29 @@ public List<Property> getProperty() {
return administeredObjectProperties;
}

@Override
public Property addProperty(Property property) {
desc.getProperties().put(property.getName(), property);
return property;
}

@Override
public Property lookupProperty(String s) {
return getProperty(s);
}

@Override
public Property removeProperty(String s) {
Property property = lookupProperty(s);
desc.getProperties().remove(s);
return property;
}

@Override
public Property removeProperty(Property property) {
return removeProperty(property.getName());
}

public Property getProperty(String name) {
String value = desc.getProperty(name);
return new AdministeredObjectProperty(name, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,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]

package com.sun.enterprise.resource.deployer;

Expand Down Expand Up @@ -302,6 +303,26 @@ public List<Property> getProperty() {
return null;
}

@Override
public Property addProperty(Property property) {
return null;
}

@Override
public Property lookupProperty(String s) {
return null;
}

@Override
public Property removeProperty(String s) {
return null;
}

@Override
public Property removeProperty(Property property) {
return null;
}

public Property getProperty(String name) {
return null;
}
Expand Down Expand Up @@ -638,7 +659,29 @@ public List<Property> getProperty() {

return connectionFactoryProperties;
}


@Override
public Property addProperty(Property property) {
desc.getProperties().put(property.getName(), property);
return property;
}

@Override
public Property lookupProperty(String s) {
return getProperty(s);
}

@Override
public Property removeProperty(String s) {
Property property = lookupProperty(s);
desc.getProperties().remove(s);
return property;
}

@Override
public Property removeProperty(Property property) {
return removeProperty(property.getName());
}

public Property getProperty(String name) {
String value = desc.getProperty(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
* holder.
*/
// Portions Copyright [2016-2017] [Payara Foundation and/or its affiliates]

package com.sun.enterprise.resource.deployer;

import com.sun.appserv.connectors.internal.api.ConnectorConstants;
Expand Down Expand Up @@ -310,6 +309,26 @@ public List<Property> getProperty() {
return null;
}

@Override
public Property addProperty(Property property) {
return null;
}

@Override
public Property lookupProperty(String s) {
return null;
}

@Override
public Property removeProperty(String s) {
return null;
}

@Override
public Property removeProperty(Property property) {
return null;
}

public Property getProperty(String name) {
return null;
}
Expand Down Expand Up @@ -705,6 +724,29 @@ public List<Property> getProperty() {
return jmsConnectionFactoryProperties;
}

@Override
public Property addProperty(Property property) {
desc.getProperties().put(property.getName(), property);
return property;
}

@Override
public Property lookupProperty(String s) {
return getProperty(s);
}

@Override
public Property removeProperty(String s) {
Property property = lookupProperty(s);
desc.getProperties().remove(s);
return property;
}

@Override
public Property removeProperty(Property property) {
return removeProperty(property.getName());
}

public Property getProperty(String name) {
String value = desc.getProperty(name);
return new JMSConnectionFactoryProperty(name, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,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]

package com.sun.enterprise.resource.deployer;

Expand Down Expand Up @@ -345,6 +346,29 @@ public List<Property> getProperty() {
return jmsDestinationProperties;
}

@Override
public Property addProperty(Property property) {
desc.getProperties().put(property.getName(), property);
return property;
}

@Override
public Property lookupProperty(String s) {
return getProperty(s);
}

@Override
public Property removeProperty(String s) {
Property property = lookupProperty(s);
desc.getProperties().remove(s);
return property;
}

@Override
public Property removeProperty(Property property) {
return removeProperty(property.getName());
}

public Property getProperty(String name) {
String value = desc.getProperty(name);
return new JMSDestinationProperty(name, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
*
* Portions Copyright [2017] Payara Foundation and/or affiliates
*/
// Portions Copyright [2017] [Payara Foundation and/or its affiliates]

package com.sun.enterprise.resource.deployer;

Expand Down Expand Up @@ -68,10 +69,7 @@
import javax.inject.Provider;
import javax.naming.NamingException;
import java.beans.PropertyVetoException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;

Expand Down Expand Up @@ -542,6 +540,29 @@ public List<Property> getProperty() {
return props;
}

@Override
public Property addProperty(Property property) {
desc.getProperties().put(property.getName(), property);
return property;
}

@Override
public Property lookupProperty(String s) {
return (Property) desc.getProperties().get(s);
}

@Override
public Property removeProperty(String s) {
Property property = lookupProperty(s);
desc.getProperties().remove(s);
return property;
}

@Override
public Property removeProperty(Property property) {
return removeProperty(property.getName());
}

@Override
public Property getProperty(String name) {
return new MailSessionProperty(name, desc.getProperty(name));
Expand Down
13 changes: 2 additions & 11 deletions appserver/extras/embedded/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
holder.

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

<project name="glassfish-embedded-all" default="create.distribution" basedir=".">
<property name="rootdir" value="target"/>
Expand Down Expand Up @@ -88,16 +88,7 @@
</fileset>
</unzip>

<mkdir dir="${rootdir}/temp"/>

<!-- Massage Bean Validation -->
<mkdir dir="${rootdir}/beanvtemp" />
<unzip dest="${rootdir}/beanvtemp">
<fileset file="${modulesdir}/bean-validator.jar"/>
</unzip>
<delete file="${modulesdir}/bean-validator.jar"/>
<delete dir="${rootdir}/beanvtemp/org/jboss/logging"/>
<jar basedir="${rootdir}/beanvtemp" destfile="${modulesdir}/bean-validator.jar"/>
<mkdir dir="${rootdir}/temp"/>
</target>

<target name="removeJarsNotNeeded">
Expand Down
3 changes: 2 additions & 1 deletion appserver/extras/javaee/manifest-jar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
holder.

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

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
Expand All @@ -58,7 +59,7 @@
<configuration>
<archive>
<manifestEntries>
<Class-Path>../modules/javax.servlet-api.jar ../modules/endorsed/javax.annotation-api.jar ../modules/javax.ejb-api.jar ../modules/javax.transaction-api.jar ../modules/javax.enterprise.deploy-api.jar ../modules/javax.management.j2ee-api.jar ../modules/javax.resource-api.jar ../modules/javax.security.auth.message-api.jar ../modules/javax.security.jacc-api.jar ../modules/webservices-osgi.jar ../modules/jaxb-osgi.jar ../modules/endorsed/jaxb-api.jar ../modules/endorsed/webservices-api-osgi.jar ../modules/javax.xml.rpc-api.jar ../modules/javax.xml.registry-api.jar ../modules/javax.mail.jar ../modules/javax.faces.jar ../modules/javax.servlet.jsp-api.jar ../modules/javax.el.jar ../modules/javax.servlet.jsp.jstl-api.jar ../modules/javax.persistence.jar ../modules/javax.jms-api.jar ../modules/bean-validator.jar ../modules/cdi-api.jar ../../mq/lib/jaxm-api.jar ../modules/javax.ws.rs-api.jar ../modules/javax.json.jar ../modules/javax.websocket-api.jar ../modules/javax.enterprise.concurrent-api.jar ../modules/javax.batch-api.jar</Class-Path>
<Class-Path>../modules/javax.servlet-api.jar ../modules/endorsed/javax.annotation-api.jar ../modules/javax.ejb-api.jar ../modules/javax.transaction-api.jar ../modules/javax.enterprise.deploy-api.jar ../modules/javax.management.j2ee-api.jar ../modules/javax.resource-api.jar ../modules/javax.security.auth.message-api.jar ../modules/javax.security.jacc-api.jar ../modules/webservices-osgi.jar ../modules/jaxb-osgi.jar ../modules/endorsed/jaxb-api.jar ../modules/endorsed/webservices-api-osgi.jar ../modules/javax.xml.rpc-api.jar ../modules/javax.xml.registry-api.jar ../modules/javax.mail.jar ../modules/javax.faces.jar ../modules/javax.servlet.jsp-api.jar ../modules/javax.el.jar ../modules/javax.servlet.jsp.jstl-api.jar ../modules/javax.persistence.jar ../modules/javax.jms-api.jar ../modules/hibernate-validator-payara-p1.jar ../modules/cdi-api.jar ../../mq/lib/jaxm-api.jar ../modules/javax.ws.rs-api.jar ../modules/javax.json.jar ../modules/javax.websocket-api.jar ../modules/javax.enterprise.concurrent-api.jar ../modules/javax.batch-api.jar</Class-Path>
<GlassFish-ServerExcluded>true</GlassFish-ServerExcluded>
</manifestEntries>
</archive>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,25 @@
<artifactId>asm-all-repackaged</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.hk2.external</groupId>
<artifactId>bean-validator</artifactId>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate.validator.version}</version>
<classifier>payara-p1</classifier>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>${javax.validation.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml</groupId>
<artifactId>classmate</artifactId>
<version>${classmate.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>${jboss.logging.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.hk2.external</groupId>
Expand Down Expand Up @@ -686,8 +703,10 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.hk2.external</groupId>
<artifactId>bean-validator-cdi</artifactId>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator-cdi</artifactId>
<version>${hibernate.validator.version}</version>
<classifier>payara-p1</classifier>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
Expand Down
Loading