Author: asankha
Date: Mon Sep 25 07:22:38 2006
New Revision: 449686
URL: http://svn.apache.org/viewvc?view=rev&rev=449686
Log:
Commiting for Ruwan
Modified:
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationBuilder.java
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationSerializer.java
Modified:
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationBuilder.java
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationBuilder.java?view=diff&rev=449686&r1=449685&r2=449686
==============================================================================
---
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationBuilder.java
(original)
+++
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationBuilder.java
Mon Sep 25 07:22:38 2006
@@ -46,7 +46,7 @@
private static Log log = LogFactory.getLog(XMLConfigurationBuilder.class);
- public SynapseConfiguration getConfiguration(InputStream is) {
+ public static SynapseConfiguration getConfiguration(InputStream is) {
log.info("Generating the Synapse configuration model by parsing the
XML configuration");
SynapseConfiguration config = new SynapseConfiguration();
@@ -144,7 +144,7 @@
* </pre>
* @param elem
*/
- public void defineProperty(SynapseConfiguration config, OMElement elem) {
+ public static void defineProperty(SynapseConfiguration config, OMElement
elem) {
OMAttribute name = elem.getAttribute(new
QName(Constants.NULL_NAMESPACE, "name"));
OMAttribute value = elem.getAttribute(new
QName(Constants.NULL_NAMESPACE, "value"));
OMAttribute src = elem.getAttribute(new
QName(Constants.NULL_NAMESPACE, "src"));
@@ -202,7 +202,7 @@
* </pre>
* @param ele
*/
- public void defineSequence(SynapseConfiguration config, OMElement ele) {
+ public static void defineSequence(SynapseConfiguration config, OMElement
ele) {
OMAttribute name = ele.getAttribute(new
QName(Constants.NULL_NAMESPACE, "name"));
OMAttribute key = ele.getAttribute(new
QName(Constants.NULL_NAMESPACE, "key"));
if (name != null && key != null) {
@@ -226,7 +226,7 @@
* </pre>
* @param ele the <endpoint> element
*/
- public void defineEndpoint(SynapseConfiguration config, OMElement ele) {
+ public static void defineEndpoint(SynapseConfiguration config, OMElement
ele) {
OMAttribute name = ele.getAttribute(new
QName(Constants.NULL_NAMESPACE, "name"));
OMAttribute key = ele.getAttribute(new
QName(Constants.NULL_NAMESPACE, "key"));
@@ -241,12 +241,12 @@
}
}
- private void handleException(String msg) {
+ private static void handleException(String msg) {
log.error(msg);
throw new SynapseException(msg);
}
- private void handleException(String msg, Exception e) {
+ private static void handleException(String msg, Exception e) {
log.error(msg, e);
throw new SynapseException(msg, e);
}
Modified:
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationSerializer.java
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationSerializer.java?view=diff&rev=449686&r1=449685&r2=449686
==============================================================================
---
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationSerializer.java
(original)
+++
incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/xml/XMLConfigurationSerializer.java
Mon Sep 25 07:22:38 2006
@@ -42,7 +42,7 @@
protected static final OMNamespace nullNS =
fac.createOMNamespace(Constants.NULL_NAMESPACE, "");
- public void serializeConfiguration(SynapseConfiguration synCfg,
OutputStream outputStream)
+ public static void serializeConfiguration(SynapseConfiguration synCfg,
OutputStream outputStream)
throws XMLStreamException {
OMElement synapse = fac.createOMElement("synapse", synNS);
@@ -90,7 +90,7 @@
synapse.serialize(outputStream);
}
- private void serializeProperties(OMElement definitions,
SynapseConfiguration synCfg) {
+ private static void serializeProperties(OMElement definitions,
SynapseConfiguration synCfg) {
Iterator iter = synCfg.getGlobalProps().keySet().iterator();
while (iter.hasNext()) {
@@ -127,7 +127,7 @@
}
}
- private void serializeEndpoints(OMElement definitions,
SynapseConfiguration synCfg) {
+ private static void serializeEndpoints(OMElement definitions,
SynapseConfiguration synCfg) {
Iterator iter = synCfg.getNamedEndpoints().keySet().iterator();
while (iter.hasNext()) {
@@ -151,7 +151,7 @@
}
}
- private void handleException(String msg) {
+ private static void handleException(String msg) {
log.error(msg);
throw new SynapseException(msg);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]