You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by dj...@apache.org on 2010/06/15 01:18:17 UTC
svn commit: r954668 [4/4] - in /openejb/trunk/openejb3/container:
openejb-core/src/main/java/org/apache/openejb/config/
openejb-core/src/test/java/org/apache/openejb/assembler/classic/
openejb-core/src/test/java/org/apache/openejb/core/stateful/ openej...
Copied: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TimerSchedule.java (from r954148, openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Schedule.java)
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TimerSchedule.java?p2=openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TimerSchedule.java&p1=openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Schedule.java&r1=954148&r2=954668&rev=954668&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Schedule.java (original)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TimerSchedule.java Mon Jun 14 23:18:15 2010
@@ -18,104 +18,130 @@ package org.apache.openejb.jee;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* @version $Rev$ $Date$
*/
@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "scheduleType", propOrder = {
- "second",
- "minute",
- "hour",
- "dayOfWeek",
- "dayOfMonth",
- "month",
- "year",
- "info",
- "persistent"
- })
-public class Schedule {
+@XmlType(name = "timer-scheduleType", propOrder = {
+ "second",
+ "minute",
+ "hour",
+ "dayOfMonth",
+ "month",
+ "dayOfWeek",
+ "year"
+})
+public class TimerSchedule {
- protected String dayOfMonth;
- protected String dayOfWeek;
- protected String hour;
- protected String info;
+ protected String second;
protected String minute;
+ protected String hour;
+ @XmlElement(name = "day-of-month")
+ protected String dayOfMonth;
protected String month;
- protected Boolean persistent;
- protected String second;
+ @XmlElement(name = "day-of-week")
+ protected String dayOfWeek;
protected String year;
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected java.lang.String id;
- public String getDayOfMonth() {
- return dayOfMonth;
+ //TODO not in xml but in annotation???
+ @XmlTransient
+ protected String info;
+ @XmlTransient
+ protected boolean persistent = true;
+
+ public String getSecond() {
+ return second;
}
- public void setDayOfMonth(String dayOfMonth) {
- this.dayOfMonth = dayOfMonth;
+ public void setSecond(String value) {
+ this.second = value;
}
- public String getDayOfWeek() {
- return dayOfWeek;
+ public String getMinute() {
+ return minute;
}
- public void setDayOfWeek(String dayOfWeek) {
- this.dayOfWeek = dayOfWeek;
+ public void setMinute(String value) {
+ this.minute = value;
}
public String getHour() {
return hour;
}
- public void setHour(String hour) {
- this.hour = hour;
+ public void setHour(String value) {
+ this.hour = value;
}
- public String getInfo() {
- return info;
+ public String getDayOfMonth() {
+ return dayOfMonth;
}
- public void setInfo(String info) {
- this.info = info;
+ public void setDayOfMonth(String value) {
+ this.dayOfMonth = value;
}
- public String getMinute() {
- return minute;
+ public String getMonth() {
+ return month;
}
- public void setMinute(String minute) {
- this.minute = minute;
+ public void setMonth(String value) {
+ this.month = value;
}
- public String getMonth() {
- return month;
+ public String getDayOfWeek() {
+ return dayOfWeek;
}
- public void setMonth(String month) {
- this.month = month;
+ public void setDayOfWeek(String value) {
+ this.dayOfWeek = value;
}
- public boolean isPersistent() {
- return persistent != null && persistent;
+ public String getYear() {
+ return year;
}
- public void setPersistent(boolean persistent) {
- this.persistent = persistent;
+ public void setYear(String value) {
+ this.year = value;
}
- public String getSecond() {
- return second;
+ public java.lang.String getId() {
+ return id;
}
- public void setSecond(String second) {
- this.second = second;
+ public void setId(java.lang.String value) {
+ this.id = value;
}
- public String getYear() {
- return year;
+ //TODO not in xml schema but in annotation
+
+ public String getInfo() {
+ return info;
}
- public void setYear(String year) {
- this.year = year;
+ public void setInfo(String info) {
+ this.info = info;
+ }
+
+ public boolean isPersistent() {
+ return persistent;
+ }
+
+ public void setPersistent(boolean persistent) {
+ this.persistent = persistent;
}
}
Added: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TrackingMode.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TrackingMode.java?rev=954668&view=auto
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TrackingMode.java (added)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TrackingMode.java Mon Jun 14 23:18:15 2010
@@ -0,0 +1,52 @@
+
+package org.apache.openejb.jee;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * The tracking modes for sessions created by this web
+ * application
+ *
+ * Used in: session-config
+ *
+ *
+ *
+ * <p>Java class for tracking-modeType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="tracking-modeType">
+ * <simpleContent>
+ * <restriction base="<http://java.sun.com/xml/ns/javaee>string">
+ * </restriction>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "tracking-modeType")
+@XmlEnum
+public enum TrackingMode {
+
+ COOKIE,
+ URL,
+ SSL;
+
+ public java.lang.String value() {
+ return name();
+ }
+
+ public static TrackingMode fromValue(java.lang.String v) {
+ return valueOf(v);
+ }
+
+}
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TrackingMode.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TrackingMode.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TrackingMode.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TransportGuarantee.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TransportGuarantee.java?rev=954668&view=auto
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TransportGuarantee.java (added)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TransportGuarantee.java Mon Jun 14 23:18:15 2010
@@ -0,0 +1,62 @@
+
+package org.apache.openejb.jee;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ *
+ * The transport-guaranteeType specifies that the communication
+ * between client and server should be NONE, INTEGRAL, or
+ * CONFIDENTIAL. NONE means that the application does not
+ * require any transport guarantees. A value of INTEGRAL means
+ * that the application requires that the data sent between the
+ * client and server be sent in such a way that it can't be
+ * changed in transit. CONFIDENTIAL means that the application
+ * requires that the data be transmitted in a fashion that
+ * prevents other entities from observing the contents of the
+ * transmission. In most cases, the presence of the INTEGRAL or
+ * CONFIDENTIAL flag will indicate that the use of SSL is
+ * required.
+ *
+ * Used in: user-data-constraint
+ *
+ *
+ *
+ * <p>Java class for transport-guaranteeType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="transport-guaranteeType">
+ * <simpleContent>
+ * <restriction base="<http://java.sun.com/xml/ns/javaee>string">
+ * </restriction>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "transport-guaranteeType")
+@XmlEnum
+public enum TransportGuarantee {
+
+ NONE,
+ INTEGRAL,
+ CONFIDENTIAL;
+
+ public java.lang.String value() {
+ return name();
+ }
+
+ public static TransportGuarantee fromValue(java.lang.String v) {
+ return valueOf(v);
+ }
+
+}
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TransportGuarantee.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TransportGuarantee.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/TransportGuarantee.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Web.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Web.java?rev=954668&view=auto
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Web.java (added)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Web.java Mon Jun 14 23:18:15 2010
@@ -0,0 +1,116 @@
+
+package org.apache.openejb.jee;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ *
+ *
+ * The webType defines the web-uri and context-root of
+ * a web application module.
+ *
+ *
+ *
+ * <p>Java class for webType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="webType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="web-uri" type="{http://java.sun.com/xml/ns/javaee}pathType"/>
+ * <element name="context-root" type="{http://java.sun.com/xml/ns/javaee}string"/>
+ * </sequence>
+ * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "webType", propOrder = {
+ "webUri",
+ "contextRoot"
+})
+public class Web {
+
+ @XmlElement(name = "web-uri", required = true)
+ protected String webUri;
+ @XmlElement(name = "context-root", required = true)
+ protected String contextRoot;
+ @XmlAttribute
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ @XmlID
+ @XmlSchemaType(name = "ID")
+ protected java.lang.String id;
+
+ public String getWebUri() {
+ return webUri;
+ }
+
+ public void setWebUri(String value) {
+ this.webUri = value;
+ }
+
+ /**
+ * Gets the value of the contextRoot property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getContextRoot() {
+ return contextRoot;
+ }
+
+ /**
+ * Sets the value of the contextRoot property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setContextRoot(String value) {
+ this.contextRoot = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link java.lang.String }
+ *
+ */
+ public java.lang.String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link java.lang.String }
+ *
+ */
+ public void setId(java.lang.String value) {
+ this.id = value;
+ }
+
+}
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Web.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Web.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/Web.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebApp.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebApp.java?rev=954668&r1=954667&r2=954668&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebApp.java (original)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebApp.java Mon Jun 14 23:18:15 2010
@@ -49,6 +49,7 @@ import java.util.Map;
"mimeMapping",
"welcomeFileList",
"errorPage",
+ //In web-app-2.3.dtd
"taglib",
"jspConfig",
"securityConstraint",
@@ -66,9 +67,13 @@ import java.util.Map;
"persistenceUnitRef",
"postConstruct",
"preDestroy",
- "messageDestination"
+ "messageDestination",
+ "absoluteOrdering",
+ "dataSource",
+ "moduleName"
+
})
-public class WebApp implements JndiConsumer {
+public class WebApp implements WebCommon {
@XmlTransient
private String contextRoot;
@@ -95,6 +100,7 @@ public class WebApp implements JndiConsu
protected List<MimeMapping> mimeMapping;
@XmlElement(name = "welcome-file-list")
protected List<WelcomeFileList> welcomeFileList;
+ //in web-app-2.3.dtd, not in any schema
@XmlElement(name = "taglib")
protected List<Taglib> taglib;
@XmlElement(name = "error-page")
@@ -128,6 +134,8 @@ public class WebApp implements JndiConsu
protected KeyedCollection<String,PersistenceContextRef> persistenceContextRef;
@XmlElement(name = "persistence-unit-ref", required = true)
protected KeyedCollection<String,PersistenceUnitRef> persistenceUnitRef;
+ @XmlElement(name = "data-source", required = true)
+ protected KeyedCollection<String,DataSource> dataSource;
@XmlElement(name = "post-construct", required = true)
protected List<LifecycleCallback> postConstruct;
@XmlElement(name = "pre-destroy", required = true)
@@ -136,6 +144,11 @@ public class WebApp implements JndiConsu
@XmlElement(name = "message-destination", required = true)
protected List<MessageDestination> messageDestination;
+ @XmlElement(name = "module-name")
+ protected String moduleName;
+ @XmlElement(name = "absolute-ordering")
+ protected AbsoluteOrdering absoluteOrdering;
+
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@@ -150,44 +163,54 @@ public class WebApp implements JndiConsu
+ @Override
public String getJndiConsumerName() {
return contextRoot;
}
+ @Override
public String getContextRoot() {
return contextRoot;
}
+ @Override
public void setContextRoot(String contextRoot) {
this.contextRoot = contextRoot;
}
+ @Override
@XmlElement(name = "description", required = true)
public Text[] getDescriptions() {
return description.toArray();
}
+ @Override
public void setDescriptions(Text[] text) {
description.set(text);
}
+ @Override
public String getDescription() {
return description.get();
}
+ @Override
@XmlElement(name = "display-name", required = true)
public Text[] getDisplayNames() {
return displayName.toArray();
}
+ @Override
public void setDisplayNames(Text[] text) {
displayName.set(text);
}
+ @Override
public String getDisplayName() {
return displayName.get();
}
+ @Override
public Collection<Icon> getIcons() {
if (icon == null) {
icon = new LocalCollection<Icon>();
@@ -195,6 +218,7 @@ public class WebApp implements JndiConsu
return icon;
}
+ @Override
public Map<String,Icon> getIconMap() {
if (icon == null) {
icon = new LocalCollection<Icon>();
@@ -202,10 +226,12 @@ public class WebApp implements JndiConsu
return icon.toMap();
}
+ @Override
public Icon getIcon() {
return icon.getLocal();
}
+ @Override
public List<EmptyType> getDistributable() {
if (distributable == null) {
distributable = new ArrayList<EmptyType>();
@@ -213,6 +239,7 @@ public class WebApp implements JndiConsu
return this.distributable;
}
+ @Override
public List<ParamValue> getContextParam() {
if (contextParam == null) {
contextParam = new ArrayList<ParamValue>();
@@ -220,6 +247,7 @@ public class WebApp implements JndiConsu
return this.contextParam;
}
+ @Override
public List<Filter> getFilter() {
if (filter == null) {
filter = new ArrayList<Filter>();
@@ -227,6 +255,7 @@ public class WebApp implements JndiConsu
return this.filter;
}
+ @Override
public List<FilterMapping> getFilterMapping() {
if (filterMapping == null) {
filterMapping = new ArrayList<FilterMapping>();
@@ -234,6 +263,7 @@ public class WebApp implements JndiConsu
return this.filterMapping;
}
+ @Override
public List<Listener> getListener() {
if (listener == null) {
listener = new ArrayList<Listener>();
@@ -241,6 +271,7 @@ public class WebApp implements JndiConsu
return this.listener;
}
+ @Override
public List<Servlet> getServlet() {
if (servlet == null) {
servlet = new ArrayList<Servlet>();
@@ -248,6 +279,7 @@ public class WebApp implements JndiConsu
return this.servlet;
}
+ @Override
public List<ServletMapping> getServletMapping() {
if (servletMapping == null) {
servletMapping = new ArrayList<ServletMapping>();
@@ -255,6 +287,7 @@ public class WebApp implements JndiConsu
return this.servletMapping;
}
+ @Override
public List<SessionConfig> getSessionConfig() {
if (sessionConfig == null) {
sessionConfig = new ArrayList<SessionConfig>();
@@ -262,6 +295,7 @@ public class WebApp implements JndiConsu
return this.sessionConfig;
}
+ @Override
public List<MimeMapping> getMimeMapping() {
if (mimeMapping == null) {
mimeMapping = new ArrayList<MimeMapping>();
@@ -269,6 +303,7 @@ public class WebApp implements JndiConsu
return this.mimeMapping;
}
+ @Override
public List<WelcomeFileList> getWelcomeFileList() {
if (welcomeFileList == null) {
welcomeFileList = new ArrayList<WelcomeFileList>();
@@ -276,6 +311,7 @@ public class WebApp implements JndiConsu
return this.welcomeFileList;
}
+ @Override
public List<ErrorPage> getErrorPage() {
if (errorPage == null) {
errorPage = new ArrayList<ErrorPage>();
@@ -283,6 +319,7 @@ public class WebApp implements JndiConsu
return this.errorPage;
}
+ @Override
public List<JspConfig> getJspConfig() {
if (jspConfig == null) {
jspConfig = new ArrayList<JspConfig>();
@@ -290,6 +327,7 @@ public class WebApp implements JndiConsu
return this.jspConfig;
}
+ @Override
public List<SecurityConstraint> getSecurityConstraint() {
if (securityConstraint == null) {
securityConstraint = new ArrayList<SecurityConstraint>();
@@ -297,6 +335,7 @@ public class WebApp implements JndiConsu
return this.securityConstraint;
}
+ @Override
public List<LoginConfigType> getLoginConfig() {
if (loginConfig == null) {
loginConfig = new ArrayList<LoginConfigType>();
@@ -304,6 +343,7 @@ public class WebApp implements JndiConsu
return this.loginConfig;
}
+ @Override
public List<SecurityRole> getSecurityRole() {
if (securityRole == null) {
securityRole = new ArrayList<SecurityRole>();
@@ -311,6 +351,7 @@ public class WebApp implements JndiConsu
return this.securityRole;
}
+ @Override
public List<LocaleEncodingMappingList> getLocaleEncodingMappingList() {
if (localeEncodingMappingList == null) {
localeEncodingMappingList = new ArrayList<LocaleEncodingMappingList>();
@@ -444,6 +485,7 @@ public class WebApp implements JndiConsu
return this.persistenceUnitRef.toMap();
}
+ @Override
public List<LifecycleCallback> getPostConstruct() {
if (postConstruct == null) {
postConstruct = new ArrayList<LifecycleCallback>();
@@ -451,6 +493,7 @@ public class WebApp implements JndiConsu
return this.postConstruct;
}
+ @Override
public List<LifecycleCallback> getPreDestroy() {
if (preDestroy == null) {
preDestroy = new ArrayList<LifecycleCallback>();
@@ -458,6 +501,7 @@ public class WebApp implements JndiConsu
return this.preDestroy;
}
+ @Override
public List<MessageDestination> getMessageDestination() {
if (messageDestination == null) {
messageDestination = new ArrayList<MessageDestination>();
@@ -465,28 +509,72 @@ public class WebApp implements JndiConsu
return this.messageDestination;
}
+ @Override
public String getId() {
return id;
}
+ @Override
public void setId(String value) {
this.id = value;
}
+ @Override
public Boolean isMetadataComplete() {
return metadataComplete != null && metadataComplete;
}
+ @Override
public void setMetadataComplete(Boolean value) {
this.metadataComplete = value;
}
+ @Override
public String getVersion() {
return version;
}
+ @Override
public void setVersion(String value) {
this.version = value;
}
+ public Collection<DataSource> getDataSource() {
+ if (dataSource == null) {
+ dataSource = new KeyedCollection<String,DataSource>();
+ }
+ return this.dataSource;
+ }
+
+ public Map<String,DataSource> getDataSourceMap() {
+ if (dataSource == null) {
+ dataSource = new KeyedCollection<String,DataSource>();
+ }
+ return this.dataSource.toMap();
+ }
+
+ public AbsoluteOrdering getAbsoluteOrdering() {
+ return absoluteOrdering;
+ }
+
+ public void setAbsoluteOrdering(AbsoluteOrdering absoluteOrdering) {
+ this.absoluteOrdering = absoluteOrdering;
+ }
+
+ public String getModuleName() {
+ return moduleName;
+ }
+
+ public void setModuleName(String moduleName) {
+ this.moduleName = moduleName;
+ }
+
+ //compatibility with web-app-2.3.dtd
+ public List<Taglib> getTaglib() {
+ return taglib;
+ }
+
+ public void setTaglib(List<Taglib> taglib) {
+ this.taglib = taglib;
+ }
}
Added: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebCommon.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebCommon.java?rev=954668&view=auto
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebCommon.java (added)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebCommon.java Mon Jun 14 23:18:15 2010
@@ -0,0 +1,107 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package org.apache.openejb.jee;
+
+import javax.xml.bind.annotation.XmlElement;
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public interface WebCommon extends JndiConsumer {
+ String getJndiConsumerName();
+
+ String getContextRoot();
+
+ void setContextRoot(String contextRoot);
+
+ @XmlElement(name = "description", required = true)
+ Text[] getDescriptions();
+
+ void setDescriptions(Text[] text);
+
+ String getDescription();
+
+ @XmlElement(name = "display-name", required = true)
+ Text[] getDisplayNames();
+
+ void setDisplayNames(Text[] text);
+
+ String getDisplayName();
+
+ Collection<Icon> getIcons();
+
+ Map<String,Icon> getIconMap();
+
+ Icon getIcon();
+
+ List<EmptyType> getDistributable();
+
+ List<ParamValue> getContextParam();
+
+ List<Filter> getFilter();
+
+ List<FilterMapping> getFilterMapping();
+
+ List<Listener> getListener();
+
+ List<Servlet> getServlet();
+
+ List<ServletMapping> getServletMapping();
+
+ List<SessionConfig> getSessionConfig();
+
+ List<MimeMapping> getMimeMapping();
+
+ List<WelcomeFileList> getWelcomeFileList();
+
+ List<ErrorPage> getErrorPage();
+
+ List<JspConfig> getJspConfig();
+
+ List<SecurityConstraint> getSecurityConstraint();
+
+ List<LoginConfigType> getLoginConfig();
+
+ List<SecurityRole> getSecurityRole();
+
+ List<LocaleEncodingMappingList> getLocaleEncodingMappingList();
+
+ List<LifecycleCallback> getPostConstruct();
+
+ List<LifecycleCallback> getPreDestroy();
+
+ List<MessageDestination> getMessageDestination();
+
+ String getId();
+
+ void setId(String value);
+
+ Boolean isMetadataComplete();
+
+ void setMetadataComplete(Boolean value);
+
+ String getVersion();
+
+ void setVersion(String value);
+}
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebCommon.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebCommon.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebCommon.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Copied: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebFragment.java (from r953386, openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebApp.java)
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebFragment.java?p2=openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebFragment.java&p1=openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebApp.java&r1=953386&r2=954668&rev=954668&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebApp.java (original)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebFragment.java Mon Jun 14 23:18:15 2010
@@ -28,8 +28,8 @@ import javax.xml.bind.annotation.XmlType
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
-import java.util.List;
import java.util.Collection;
+import java.util.List;
import java.util.Map;
@XmlRootElement(name = "web-app")
@@ -49,7 +49,8 @@ import java.util.Map;
"mimeMapping",
"welcomeFileList",
"errorPage",
- "taglib",
+ //TDOD not in schema?
+// "taglib",
"jspConfig",
"securityConstraint",
"loginConfig",
@@ -66,9 +67,13 @@ import java.util.Map;
"persistenceUnitRef",
"postConstruct",
"preDestroy",
- "messageDestination"
+ "messageDestination",
+ "ordering",
+ "dataSource",
+ "name"
+
})
-public class WebApp implements JndiConsumer {
+public class WebFragment implements WebCommon {
@XmlTransient
private String contextRoot;
@@ -95,8 +100,9 @@ public class WebApp implements JndiConsu
protected List<MimeMapping> mimeMapping;
@XmlElement(name = "welcome-file-list")
protected List<WelcomeFileList> welcomeFileList;
- @XmlElement(name = "taglib")
- protected List<Taglib> taglib;
+ //TODO not in schema
+// @XmlElement(name = "taglib")
+// protected List<Taglib> taglib;
@XmlElement(name = "error-page")
protected List<ErrorPage> errorPage;
@XmlElement(name = "jsp-config")
@@ -128,6 +134,8 @@ public class WebApp implements JndiConsu
protected KeyedCollection<String,PersistenceContextRef> persistenceContextRef;
@XmlElement(name = "persistence-unit-ref", required = true)
protected KeyedCollection<String,PersistenceUnitRef> persistenceUnitRef;
+ @XmlElement(name = "data-source", required = true)
+ protected KeyedCollection<String,DataSource> dataSource;
@XmlElement(name = "post-construct", required = true)
protected List<LifecycleCallback> postConstruct;
@XmlElement(name = "pre-destroy", required = true)
@@ -136,6 +144,11 @@ public class WebApp implements JndiConsu
@XmlElement(name = "message-destination", required = true)
protected List<MessageDestination> messageDestination;
+ @XmlElement(name = "module-name")
+ protected String name;
+ @XmlElement(name = "ordering")
+ protected Ordering ordering;
+
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@@ -150,44 +163,54 @@ public class WebApp implements JndiConsu
+ @Override
public String getJndiConsumerName() {
return contextRoot;
}
+ @Override
public String getContextRoot() {
return contextRoot;
}
+ @Override
public void setContextRoot(String contextRoot) {
this.contextRoot = contextRoot;
}
+ @Override
@XmlElement(name = "description", required = true)
public Text[] getDescriptions() {
return description.toArray();
}
+ @Override
public void setDescriptions(Text[] text) {
description.set(text);
}
+ @Override
public String getDescription() {
return description.get();
}
+ @Override
@XmlElement(name = "display-name", required = true)
public Text[] getDisplayNames() {
return displayName.toArray();
}
+ @Override
public void setDisplayNames(Text[] text) {
displayName.set(text);
}
+ @Override
public String getDisplayName() {
return displayName.get();
}
+ @Override
public Collection<Icon> getIcons() {
if (icon == null) {
icon = new LocalCollection<Icon>();
@@ -195,6 +218,7 @@ public class WebApp implements JndiConsu
return icon;
}
+ @Override
public Map<String,Icon> getIconMap() {
if (icon == null) {
icon = new LocalCollection<Icon>();
@@ -202,10 +226,12 @@ public class WebApp implements JndiConsu
return icon.toMap();
}
+ @Override
public Icon getIcon() {
return icon.getLocal();
}
+ @Override
public List<EmptyType> getDistributable() {
if (distributable == null) {
distributable = new ArrayList<EmptyType>();
@@ -213,6 +239,7 @@ public class WebApp implements JndiConsu
return this.distributable;
}
+ @Override
public List<ParamValue> getContextParam() {
if (contextParam == null) {
contextParam = new ArrayList<ParamValue>();
@@ -220,6 +247,7 @@ public class WebApp implements JndiConsu
return this.contextParam;
}
+ @Override
public List<Filter> getFilter() {
if (filter == null) {
filter = new ArrayList<Filter>();
@@ -227,6 +255,7 @@ public class WebApp implements JndiConsu
return this.filter;
}
+ @Override
public List<FilterMapping> getFilterMapping() {
if (filterMapping == null) {
filterMapping = new ArrayList<FilterMapping>();
@@ -234,6 +263,7 @@ public class WebApp implements JndiConsu
return this.filterMapping;
}
+ @Override
public List<Listener> getListener() {
if (listener == null) {
listener = new ArrayList<Listener>();
@@ -241,6 +271,7 @@ public class WebApp implements JndiConsu
return this.listener;
}
+ @Override
public List<Servlet> getServlet() {
if (servlet == null) {
servlet = new ArrayList<Servlet>();
@@ -248,6 +279,7 @@ public class WebApp implements JndiConsu
return this.servlet;
}
+ @Override
public List<ServletMapping> getServletMapping() {
if (servletMapping == null) {
servletMapping = new ArrayList<ServletMapping>();
@@ -255,6 +287,7 @@ public class WebApp implements JndiConsu
return this.servletMapping;
}
+ @Override
public List<SessionConfig> getSessionConfig() {
if (sessionConfig == null) {
sessionConfig = new ArrayList<SessionConfig>();
@@ -262,6 +295,7 @@ public class WebApp implements JndiConsu
return this.sessionConfig;
}
+ @Override
public List<MimeMapping> getMimeMapping() {
if (mimeMapping == null) {
mimeMapping = new ArrayList<MimeMapping>();
@@ -269,6 +303,7 @@ public class WebApp implements JndiConsu
return this.mimeMapping;
}
+ @Override
public List<WelcomeFileList> getWelcomeFileList() {
if (welcomeFileList == null) {
welcomeFileList = new ArrayList<WelcomeFileList>();
@@ -276,6 +311,7 @@ public class WebApp implements JndiConsu
return this.welcomeFileList;
}
+ @Override
public List<ErrorPage> getErrorPage() {
if (errorPage == null) {
errorPage = new ArrayList<ErrorPage>();
@@ -283,6 +319,7 @@ public class WebApp implements JndiConsu
return this.errorPage;
}
+ @Override
public List<JspConfig> getJspConfig() {
if (jspConfig == null) {
jspConfig = new ArrayList<JspConfig>();
@@ -290,6 +327,7 @@ public class WebApp implements JndiConsu
return this.jspConfig;
}
+ @Override
public List<SecurityConstraint> getSecurityConstraint() {
if (securityConstraint == null) {
securityConstraint = new ArrayList<SecurityConstraint>();
@@ -297,6 +335,7 @@ public class WebApp implements JndiConsu
return this.securityConstraint;
}
+ @Override
public List<LoginConfigType> getLoginConfig() {
if (loginConfig == null) {
loginConfig = new ArrayList<LoginConfigType>();
@@ -304,6 +343,7 @@ public class WebApp implements JndiConsu
return this.loginConfig;
}
+ @Override
public List<SecurityRole> getSecurityRole() {
if (securityRole == null) {
securityRole = new ArrayList<SecurityRole>();
@@ -311,6 +351,7 @@ public class WebApp implements JndiConsu
return this.securityRole;
}
+ @Override
public List<LocaleEncodingMappingList> getLocaleEncodingMappingList() {
if (localeEncodingMappingList == null) {
localeEncodingMappingList = new ArrayList<LocaleEncodingMappingList>();
@@ -318,6 +359,7 @@ public class WebApp implements JndiConsu
return this.localeEncodingMappingList;
}
+ @Override
public Collection<EnvEntry> getEnvEntry() {
if (envEntry == null) {
envEntry = new KeyedCollection<String,EnvEntry>();
@@ -325,6 +367,7 @@ public class WebApp implements JndiConsu
return this.envEntry;
}
+ @Override
public Map<String,EnvEntry> getEnvEntryMap() {
if (envEntry == null) {
envEntry = new KeyedCollection<String,EnvEntry>();
@@ -332,6 +375,7 @@ public class WebApp implements JndiConsu
return this.envEntry.toMap();
}
+ @Override
public Collection<EjbRef> getEjbRef() {
if (ejbRef == null) {
ejbRef = new KeyedCollection<String,EjbRef>();
@@ -339,6 +383,7 @@ public class WebApp implements JndiConsu
return this.ejbRef;
}
+ @Override
public Map<String,EjbRef> getEjbRefMap() {
if (ejbRef == null) {
ejbRef = new KeyedCollection<String,EjbRef>();
@@ -346,6 +391,7 @@ public class WebApp implements JndiConsu
return this.ejbRef.toMap();
}
+ @Override
public Collection<EjbLocalRef> getEjbLocalRef() {
if (ejbLocalRef == null) {
ejbLocalRef = new KeyedCollection<String,EjbLocalRef>();
@@ -353,6 +399,7 @@ public class WebApp implements JndiConsu
return this.ejbLocalRef;
}
+ @Override
public Map<String,EjbLocalRef> getEjbLocalRefMap() {
if (ejbLocalRef == null) {
ejbLocalRef = new KeyedCollection<String,EjbLocalRef>();
@@ -360,6 +407,7 @@ public class WebApp implements JndiConsu
return this.ejbLocalRef.toMap();
}
+ @Override
public Collection<ServiceRef> getServiceRef() {
if (serviceRef == null) {
serviceRef = new KeyedCollection<String,ServiceRef>();
@@ -367,6 +415,7 @@ public class WebApp implements JndiConsu
return this.serviceRef;
}
+ @Override
public Map<String,ServiceRef> getServiceRefMap() {
if (serviceRef == null) {
serviceRef = new KeyedCollection<String,ServiceRef>();
@@ -374,6 +423,7 @@ public class WebApp implements JndiConsu
return this.serviceRef.toMap();
}
+ @Override
public Collection<ResourceRef> getResourceRef() {
if (resourceRef == null) {
resourceRef = new KeyedCollection<String,ResourceRef>();
@@ -381,6 +431,7 @@ public class WebApp implements JndiConsu
return this.resourceRef;
}
+ @Override
public Map<String,ResourceRef> getResourceRefMap() {
if (resourceRef == null) {
resourceRef = new KeyedCollection<String,ResourceRef>();
@@ -388,6 +439,7 @@ public class WebApp implements JndiConsu
return this.resourceRef.toMap();
}
+ @Override
public Collection<ResourceEnvRef> getResourceEnvRef() {
if (resourceEnvRef == null) {
resourceEnvRef = new KeyedCollection<String,ResourceEnvRef>();
@@ -395,6 +447,7 @@ public class WebApp implements JndiConsu
return this.resourceEnvRef;
}
+ @Override
public Map<String,ResourceEnvRef> getResourceEnvRefMap() {
if (resourceEnvRef == null) {
resourceEnvRef = new KeyedCollection<String,ResourceEnvRef>();
@@ -402,6 +455,7 @@ public class WebApp implements JndiConsu
return this.resourceEnvRef.toMap();
}
+ @Override
public Collection<MessageDestinationRef> getMessageDestinationRef() {
if (messageDestinationRef == null) {
messageDestinationRef = new KeyedCollection<String,MessageDestinationRef>();
@@ -409,6 +463,7 @@ public class WebApp implements JndiConsu
return this.messageDestinationRef;
}
+ @Override
public Map<String,MessageDestinationRef> getMessageDestinationRefMap() {
if (messageDestinationRef == null) {
messageDestinationRef = new KeyedCollection<String,MessageDestinationRef>();
@@ -416,6 +471,7 @@ public class WebApp implements JndiConsu
return this.messageDestinationRef.toMap();
}
+ @Override
public Collection<PersistenceContextRef> getPersistenceContextRef() {
if (persistenceContextRef == null) {
persistenceContextRef = new KeyedCollection<String,PersistenceContextRef>();
@@ -423,6 +479,7 @@ public class WebApp implements JndiConsu
return this.persistenceContextRef;
}
+ @Override
public Map<String,PersistenceContextRef> getPersistenceContextRefMap() {
if (persistenceContextRef == null) {
persistenceContextRef = new KeyedCollection<String,PersistenceContextRef>();
@@ -430,6 +487,7 @@ public class WebApp implements JndiConsu
return this.persistenceContextRef.toMap();
}
+ @Override
public Collection<PersistenceUnitRef> getPersistenceUnitRef() {
if (persistenceUnitRef == null) {
persistenceUnitRef = new KeyedCollection<String,PersistenceUnitRef>();
@@ -437,6 +495,7 @@ public class WebApp implements JndiConsu
return this.persistenceUnitRef;
}
+ @Override
public Map<String,PersistenceUnitRef> getPersistenceUnitRefMap() {
if (persistenceUnitRef == null) {
persistenceUnitRef = new KeyedCollection<String,PersistenceUnitRef>();
@@ -444,6 +503,7 @@ public class WebApp implements JndiConsu
return this.persistenceUnitRef.toMap();
}
+ @Override
public List<LifecycleCallback> getPostConstruct() {
if (postConstruct == null) {
postConstruct = new ArrayList<LifecycleCallback>();
@@ -451,6 +511,7 @@ public class WebApp implements JndiConsu
return this.postConstruct;
}
+ @Override
public List<LifecycleCallback> getPreDestroy() {
if (preDestroy == null) {
preDestroy = new ArrayList<LifecycleCallback>();
@@ -458,6 +519,7 @@ public class WebApp implements JndiConsu
return this.preDestroy;
}
+ @Override
public List<MessageDestination> getMessageDestination() {
if (messageDestination == null) {
messageDestination = new ArrayList<MessageDestination>();
@@ -465,28 +527,65 @@ public class WebApp implements JndiConsu
return this.messageDestination;
}
+ @Override
public String getId() {
return id;
}
+ @Override
public void setId(String value) {
this.id = value;
}
+ @Override
public Boolean isMetadataComplete() {
return metadataComplete != null && metadataComplete;
}
+ @Override
public void setMetadataComplete(Boolean value) {
this.metadataComplete = value;
}
+ @Override
public String getVersion() {
return version;
}
+ @Override
public void setVersion(String value) {
this.version = value;
}
-}
+ @Override
+ public Collection<DataSource> getDataSource() {
+ if (dataSource == null) {
+ dataSource = new KeyedCollection<String,DataSource>();
+ }
+ return this.dataSource;
+ }
+
+ @Override
+ public Map<String,DataSource> getDataSourceMap() {
+ if (dataSource == null) {
+ dataSource = new KeyedCollection<String,DataSource>();
+ }
+ return this.dataSource.toMap();
+ }
+
+ public Ordering getOrdering() {
+ return ordering;
+ }
+
+ public void setOrdering(Ordering ordering) {
+ this.ordering = ordering;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
\ No newline at end of file
Modified: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebResourceCollection.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebResourceCollection.java?rev=954668&r1=954667&r2=954668&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebResourceCollection.java (original)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/WebResourceCollection.java Mon Jun 14 23:18:15 2010
@@ -22,6 +22,7 @@ import javax.xml.bind.annotation.XmlAcce
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
+import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@@ -33,7 +34,8 @@ import java.util.List;
"webResourceName",
"description",
"urlPattern",
- "httpMethod"
+ "httpMethod",
+ "httpMethodOmission"
})
public class WebResourceCollection {
@@ -43,11 +45,16 @@ public class WebResourceCollection {
@XmlElement(name = "url-pattern", required = true)
protected List<String> urlPattern;
@XmlElement(name = "http-method")
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected List<String> httpMethod;
+ @XmlElement(name = "http-method-omission")
+ @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+ protected List<String> httpMethodOmission;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
- protected String id;
+ @XmlSchemaType(name = "ID")
+ protected java.lang.String id;
public String getWebResourceName() {
return webResourceName;
@@ -78,12 +85,20 @@ public class WebResourceCollection {
return this.httpMethod;
}
- public String getId() {
+ public List<String> getHttpMethodOmission() {
+ if (httpMethodOmission == null) {
+ httpMethodOmission = new ArrayList<String>();
+ }
+ return this.httpMethodOmission;
+ }
+
+ public java.lang.String getId() {
return id;
}
- public void setId(String value) {
+ public void setId(java.lang.String value) {
this.id = value;
}
}
+
Modified: openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/oejb2/ResourceEnvRefType.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/oejb2/ResourceEnvRefType.java?rev=954668&r1=954667&r2=954668&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/oejb2/ResourceEnvRefType.java (original)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/java/org/apache/openejb/jee/oejb2/ResourceEnvRefType.java Mon Jun 14 23:18:15 2010
@@ -56,7 +56,12 @@ import javax.xml.bind.annotation.XmlType
"pattern",
"messageDestinationLink",
"adminObjectModule",
- "adminObjectLink"
+ "adminObjectLink",
+ "referenceClass",
+ "stringAddrType",
+ "stringAddr",
+ "objectFactory",
+ "objectFactoryLocation"
})
public class ResourceEnvRefType {
@@ -70,6 +75,16 @@ public class ResourceEnvRefType {
protected String adminObjectModule;
@XmlElement(name = "admin-object-link", namespace = "http://geronimo.apache.org/xml/ns/naming-1.2")
protected String adminObjectLink;
+ @XmlElement(name = "reference-class", namespace = "http://geronimo.apache.org/xml/ns/naming-1.2")
+ protected String referenceClass;
+ @XmlElement(name = "string-addr-type", namespace = "http://geronimo.apache.org/xml/ns/naming-1.2")
+ protected String stringAddrType;
+ @XmlElement(name = "string-addr", namespace = "http://geronimo.apache.org/xml/ns/naming-1.2")
+ protected String stringAddr;
+ @XmlElement(name = "object-factory", namespace = "http://geronimo.apache.org/xml/ns/naming-1.2")
+ protected String objectFactory;
+ @XmlElement(name = "object-factory-location", namespace = "http://geronimo.apache.org/xml/ns/naming-1.2")
+ protected String objectFactoryLocation;
/**
* Gets the value of the refName property.
@@ -191,4 +206,43 @@ public class ResourceEnvRefType {
this.adminObjectLink = value;
}
+ public String getObjectFactory() {
+ return objectFactory;
+ }
+
+ public void setObjectFactory(String objectFactory) {
+ this.objectFactory = objectFactory;
+ }
+
+ public String getObjectFactoryLocation() {
+ return objectFactoryLocation;
+ }
+
+ public void setObjectFactoryLocation(String objectFactoryLocation) {
+ this.objectFactoryLocation = objectFactoryLocation;
+ }
+
+ public String getReferenceClass() {
+ return referenceClass;
+ }
+
+ public void setReferenceClass(String referenceClass) {
+ this.referenceClass = referenceClass;
+ }
+
+ public String getStringAddr() {
+ return stringAddr;
+ }
+
+ public void setStringAddr(String stringAddr) {
+ this.stringAddr = stringAddr;
+ }
+
+ public String getStringAddrType() {
+ return stringAddrType;
+ }
+
+ public void setStringAddrType(String stringAddrType) {
+ this.stringAddrType = stringAddrType;
+ }
}
Added: openejb/trunk/openejb3/container/openejb-jee/src/main/xsdlist/xsdlist.txt
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/main/xsdlist/xsdlist.txt?rev=954668&view=auto
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/main/xsdlist/xsdlist.txt (added)
+++ openejb/trunk/openejb3/container/openejb-jee/src/main/xsdlist/xsdlist.txt Mon Jun 14 23:18:15 2010
@@ -0,0 +1,17 @@
+http://java.sun.com/xml/ns/javaee/application_6.xsd
+http://java.sun.com/xml/ns/javaee/application-client_6.xsd
+http://java.sun.com/xml/ns/javaee/beans_1_0.xsd
+http://java.sun.com/xml/ns/javaee/connector_1_6.xsd
+http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd
+http://java.sun.com/xml/ns/javaee/javaee_6.xsd
+http://java.sun.com/xml/ns/javaee/javaee_web_services_1_3.xsd
+http://java.sun.com/xml/ns/javaee/javaee_web_services_client_1_3.xsd
+http://java.sun.com/xml/ns/javaee/jsp_2_2.xsd
+http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
+http://java.sun.com/xml/ns/javaee/web-common_3_0.xsd
+http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd
+http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd
+http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd
+http://java.sun.com/xml/ns/javaee/web-partialresponse_2_0.xsd
+http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd
+http://java.sun.com/xml/ns/javaee/javaee_web_services_metadata_handler_2_0.xsd
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/xsdlist/xsdlist.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/xsdlist/xsdlist.txt
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: openejb/trunk/openejb3/container/openejb-jee/src/main/xsdlist/xsdlist.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: openejb/trunk/openejb3/container/openejb-jee/src/test/java/org/apache/openejb/jee/JeeTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/test/java/org/apache/openejb/jee/JeeTest.java?rev=954668&r1=954667&r2=954668&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/test/java/org/apache/openejb/jee/JeeTest.java (original)
+++ openejb/trunk/openejb3/container/openejb-jee/src/test/java/org/apache/openejb/jee/JeeTest.java Mon Jun 14 23:18:15 2010
@@ -289,6 +289,7 @@ public class JeeTest extends TestCase {
private static class TestValidationEventHandler implements ValidationEventHandler {
public boolean handleEvent(ValidationEvent validationEvent) {
System.out.println(validationEvent.getMessage());
+ System.out.println(validationEvent.getLocator());
return false; // if an error occurs we must be aware of
}
}
Modified: openejb/trunk/openejb3/container/openejb-jee/src/test/resources/application-example.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-jee/src/test/resources/application-example.xml?rev=954668&r1=954667&r2=954668&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-jee/src/test/resources/application-example.xml (original)
+++ openejb/trunk/openejb3/container/openejb-jee/src/test/resources/application-example.xml Mon Jun 14 23:18:15 2010
@@ -1,25 +1,28 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<!-- $Rev$ $Date$ -->
-
-<application xmlns="http://java.sun.com/xml/ns/javaee" version="3.0">
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<application xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd"
+ version="6">
<description>String</description>
<display-name>token</display-name>
<icon xml:lang="en">