You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/09/15 21:07:03 UTC
svn commit: r289289 [15/134] - in /webservices/axis2/trunk/java: ./ etc/
modules/addressing/ modules/addressing/src/META-INF/
modules/addressing/src/org/apache/axis2/handlers/addressing/
modules/addressing/test-resources/ modules/addressing/test/org/ap...
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfo.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfo.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfo.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfo.java Thu Sep 15 11:52:11 2005
@@ -1,59 +1,59 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.deployment.repository.util;
-
-
-public class WSInfo {
-
- private String filename;
- private long lastmodifieddate;
- /**
- * To check whether the file is a module or a servise
- */
- private int type;
-
- public WSInfo(String filename, long lastmodifieddate) {
- this.filename = filename;
- this.lastmodifieddate = lastmodifieddate;
- }
-
- public WSInfo(String filename, long lastmodifieddate, int type) {
- this.filename = filename;
- this.lastmodifieddate = lastmodifieddate;
- this.type = type;
- }
-
- public String getFilename() {
- return filename;
- }
-
- public void setFilename(String filename) {
- this.filename = filename;
- }
-
- public long getLastmodifieddate() {
- return lastmodifieddate;
- }
-
- public void setLastModifiedDate(long lastmodifieddate) {
- this.lastmodifieddate = lastmodifieddate;
- }
-
- public int getType() {
- return type;
- }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.deployment.repository.util;
+
+
+public class WSInfo {
+
+ private String filename;
+ private long lastmodifieddate;
+ /**
+ * To check whether the file is a module or a servise
+ */
+ private int type;
+
+ public WSInfo(String filename, long lastmodifieddate) {
+ this.filename = filename;
+ this.lastmodifieddate = lastmodifieddate;
+ }
+
+ public WSInfo(String filename, long lastmodifieddate, int type) {
+ this.filename = filename;
+ this.lastmodifieddate = lastmodifieddate;
+ this.type = type;
+ }
+
+ public String getFilename() {
+ return filename;
+ }
+
+ public void setFilename(String filename) {
+ this.filename = filename;
+ }
+
+ public long getLastmodifieddate() {
+ return lastmodifieddate;
+ }
+
+ public void setLastModifiedDate(long lastmodifieddate) {
+ this.lastmodifieddate = lastmodifieddate;
+ }
+
+ public int getType() {
+ return type;
+ }
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfo.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfoList.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfoList.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfoList.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfoList.java Thu Sep 15 11:52:11 2005
@@ -1,223 +1,223 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.deployment.repository.util;
-
-import org.apache.axis2.deployment.DeploymentConstants;
-import org.apache.axis2.deployment.DeploymentEngine;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-public class WSInfoList implements DeploymentConstants {
- /**
- * This is to store all the jar files in a specified folder (WEB_INF)
- */
- private static List jarlist = new ArrayList();
-
- /**
- * All the curently updated jars
- */
- public List currentjars = new ArrayList();
-
- /**
- * Referance to DeploymentEngine to make update
- */
- private DeploymentEngine deployer;
-
- public WSInfoList(DeploymentEngine deploy_engine) {
- deployer = deploy_engine;
- }
-
- /**
- * This method is used to initialize the vector
- */
- public void init() {
- jarlist.clear();
- }
-
- /**
- * First it check whether the file is already available in the
- * system call isFileExist , if it is not deployed yet then it will add
- * that to jarlist and to the deployment engine as new service or module
- * in adding new item to jarlist it first create optimice and requird object to
- * keep those infor call WSInfo and that will be added to jarist and actual
- * jar file will be added to DeploymentEngine
- * <p/>
- * If it is alredy exsit then it check whether it has been updated
- * then change the last update date of the wsInfo and added two entries to DeploymentEngine
- * one for New Deployment and other for undeployment
- *
- * @param file actual jar files for either Module or service
- * @param type indicate either Service or Module
- */
- public void addWSInfoItem(File file, int type) {
- switch (type) {
- case SERVICE:
- {
- if (!isFileExist(file.getName())) { // chacking whether the file is already deployed
- WSInfo wsInfo = new WSInfo(file.getName(),
- file.lastModified(),
- SERVICE);
- jarlist.add(wsInfo);
- ArchiveFileData archiveFileData = new ArchiveFileData(file, SERVICE);
- deployer.addWSToDeploy(archiveFileData);//to inform that new web service is deployed
- } else {
- if (deployer.isHotUpdate()) {
- WSInfo tempWSInfo = getFileItem(file.getName());
- if (isModified(file, tempWSInfo)) { // caheck whether file is updated
- tempWSInfo.setLastModifiedDate(file.lastModified());
- WSInfo wsInfo = new WSInfo(tempWSInfo.getFilename(),
- tempWSInfo.getLastmodifieddate(),
- SERVICE);
- deployer.addWSToUndeploy(wsInfo); // add entry to undeploy list
- ArchiveFileData archiveFileData = new ArchiveFileData(file, SERVICE);
- deployer.addWSToDeploy(archiveFileData); // add entry to deploylist
-
- }
- }
- }
- break;
- }
- case MODULE:
- {
- if (!isFileExist(file.getName())) { // chacking whether the file is already deployed
- WSInfo wsInfo = new WSInfo(file.getName(),
- file.lastModified(),
- MODULE);
- jarlist.add(wsInfo);
- ArchiveFileData archiveFileData = new ArchiveFileData(file, MODULE);
- deployer.addWSToDeploy(archiveFileData);//to inform that new web service is deployed
- } else {
- if (deployer.isHotUpdate()) {
- WSInfo tempWSInfo = getFileItem(file.getName());
- if (isModified(file, tempWSInfo)) {
- tempWSInfo.setLastModifiedDate(file.lastModified());
- WSInfo wsInfo = new WSInfo(tempWSInfo.getFilename(),
- tempWSInfo.getLastmodifieddate(),
- MODULE);
- deployer.addWSToUndeploy(wsInfo); // add entry to undeploy list
- ArchiveFileData archiveFileData = new ArchiveFileData(file, MODULE);
- deployer.addWSToDeploy(archiveFileData); // add entry to deploylist
-
- }
- }
- }
- break;
- }
- }
- String jarname = file.getName();
- currentjars.add(jarname);
- }
-
- /**
- * This method is to use to check the file exist and if so
- * it will return related wsinfo object to the file else return null;
- *
- * @param filename
- * @return
- */
- public WSInfo getFileItem(String filename) {
- int sise = jarlist.size();
- for (int i = 0; i < sise; i++) {
- WSInfo wsInfo = (WSInfo) jarlist.get(i);
- if (wsInfo.getFilename().equals(filename)) {
- return wsInfo;
- }
- }
- return null;
- }
-
- /**
- * comapre the last update dates of both files and if those are differ
- * that will assume as the file is been modified
- *
- * @param file
- * @param wsInfo
- * @return
- */
- public boolean isModified(File file, WSInfo wsInfo) {
- return (wsInfo.getLastmodifieddate() != file.lastModified());
- }
-
- /**
- * to check whether the file is alredy in the list
- *
- * @param filename
- * @return
- */
- public boolean isFileExist(String filename) {
- return !(getFileItem(filename) == null);
- }
-
- /**
- * this is to check , undeploye WS
- * what this relly does is it caheck older jars files and
- * current jars if name of the old jar file does not exit in the currecntjar
- * list then it is assumed that the jar file has been removed
- * that is hot undeployment
- */
- public void checkForUndeploye() {
- Iterator iter = jarlist.listIterator();
- int size = currentjars.size();
- List tempvector = new ArrayList();
- tempvector.clear();
- String filename = "";
- boolean exist = false;
- while (iter.hasNext()) {
- WSInfo fileitem = (WSInfo) iter.next();
- exist = false;
- for (int i = 0; i < size; i++) {
- filename = (String) currentjars.get(i);
- if (filename.equals(fileitem.getFilename())) {
- exist = true;
- break;
- }
- }
-
- if (!exist) {
- tempvector.add(fileitem);
- WSInfo wsInfo = new WSInfo(fileitem.getFilename(),
- fileitem.getLastmodifieddate());
- deployer.addWSToUndeploy(wsInfo);//this is to be undeploye
- }
-
- }
-
- for (int i = 0; i < tempvector.size(); i++) {
- WSInfo fileItem = (WSInfo) tempvector.get(i);
- jarlist.remove(fileItem);
- }
- tempvector.clear();
- currentjars.clear();
- }
-
-
- /**
- *
- */
- public void update() {
- checkForUndeploye();
- if (deployer.isHotUpdate()) {
- deployer.unDeploy();
- }
- deployer.doDeploy();
-
- }
-
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.deployment.repository.util;
+
+import org.apache.axis2.deployment.DeploymentConstants;
+import org.apache.axis2.deployment.DeploymentEngine;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+public class WSInfoList implements DeploymentConstants {
+ /**
+ * This is to store all the jar files in a specified folder (WEB_INF)
+ */
+ private static List jarlist = new ArrayList();
+
+ /**
+ * All the curently updated jars
+ */
+ public List currentjars = new ArrayList();
+
+ /**
+ * Referance to DeploymentEngine to make update
+ */
+ private DeploymentEngine deployer;
+
+ public WSInfoList(DeploymentEngine deploy_engine) {
+ deployer = deploy_engine;
+ }
+
+ /**
+ * This method is used to initialize the vector
+ */
+ public void init() {
+ jarlist.clear();
+ }
+
+ /**
+ * First it check whether the file is already available in the
+ * system call isFileExist , if it is not deployed yet then it will add
+ * that to jarlist and to the deployment engine as new service or module
+ * in adding new item to jarlist it first create optimice and requird object to
+ * keep those infor call WSInfo and that will be added to jarist and actual
+ * jar file will be added to DeploymentEngine
+ * <p/>
+ * If it is alredy exsit then it check whether it has been updated
+ * then change the last update date of the wsInfo and added two entries to DeploymentEngine
+ * one for New Deployment and other for undeployment
+ *
+ * @param file actual jar files for either Module or service
+ * @param type indicate either Service or Module
+ */
+ public void addWSInfoItem(File file, int type) {
+ switch (type) {
+ case SERVICE:
+ {
+ if (!isFileExist(file.getName())) { // chacking whether the file is already deployed
+ WSInfo wsInfo = new WSInfo(file.getName(),
+ file.lastModified(),
+ SERVICE);
+ jarlist.add(wsInfo);
+ ArchiveFileData archiveFileData = new ArchiveFileData(file, SERVICE);
+ deployer.addWSToDeploy(archiveFileData);//to inform that new web service is deployed
+ } else {
+ if (deployer.isHotUpdate()) {
+ WSInfo tempWSInfo = getFileItem(file.getName());
+ if (isModified(file, tempWSInfo)) { // caheck whether file is updated
+ tempWSInfo.setLastModifiedDate(file.lastModified());
+ WSInfo wsInfo = new WSInfo(tempWSInfo.getFilename(),
+ tempWSInfo.getLastmodifieddate(),
+ SERVICE);
+ deployer.addWSToUndeploy(wsInfo); // add entry to undeploy list
+ ArchiveFileData archiveFileData = new ArchiveFileData(file, SERVICE);
+ deployer.addWSToDeploy(archiveFileData); // add entry to deploylist
+
+ }
+ }
+ }
+ break;
+ }
+ case MODULE:
+ {
+ if (!isFileExist(file.getName())) { // chacking whether the file is already deployed
+ WSInfo wsInfo = new WSInfo(file.getName(),
+ file.lastModified(),
+ MODULE);
+ jarlist.add(wsInfo);
+ ArchiveFileData archiveFileData = new ArchiveFileData(file, MODULE);
+ deployer.addWSToDeploy(archiveFileData);//to inform that new web service is deployed
+ } else {
+ if (deployer.isHotUpdate()) {
+ WSInfo tempWSInfo = getFileItem(file.getName());
+ if (isModified(file, tempWSInfo)) {
+ tempWSInfo.setLastModifiedDate(file.lastModified());
+ WSInfo wsInfo = new WSInfo(tempWSInfo.getFilename(),
+ tempWSInfo.getLastmodifieddate(),
+ MODULE);
+ deployer.addWSToUndeploy(wsInfo); // add entry to undeploy list
+ ArchiveFileData archiveFileData = new ArchiveFileData(file, MODULE);
+ deployer.addWSToDeploy(archiveFileData); // add entry to deploylist
+
+ }
+ }
+ }
+ break;
+ }
+ }
+ String jarname = file.getName();
+ currentjars.add(jarname);
+ }
+
+ /**
+ * This method is to use to check the file exist and if so
+ * it will return related wsinfo object to the file else return null;
+ *
+ * @param filename
+ * @return
+ */
+ public WSInfo getFileItem(String filename) {
+ int sise = jarlist.size();
+ for (int i = 0; i < sise; i++) {
+ WSInfo wsInfo = (WSInfo) jarlist.get(i);
+ if (wsInfo.getFilename().equals(filename)) {
+ return wsInfo;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * comapre the last update dates of both files and if those are differ
+ * that will assume as the file is been modified
+ *
+ * @param file
+ * @param wsInfo
+ * @return
+ */
+ public boolean isModified(File file, WSInfo wsInfo) {
+ return (wsInfo.getLastmodifieddate() != file.lastModified());
+ }
+
+ /**
+ * to check whether the file is alredy in the list
+ *
+ * @param filename
+ * @return
+ */
+ public boolean isFileExist(String filename) {
+ return !(getFileItem(filename) == null);
+ }
+
+ /**
+ * this is to check , undeploye WS
+ * what this relly does is it caheck older jars files and
+ * current jars if name of the old jar file does not exit in the currecntjar
+ * list then it is assumed that the jar file has been removed
+ * that is hot undeployment
+ */
+ public void checkForUndeploye() {
+ Iterator iter = jarlist.listIterator();
+ int size = currentjars.size();
+ List tempvector = new ArrayList();
+ tempvector.clear();
+ String filename = "";
+ boolean exist = false;
+ while (iter.hasNext()) {
+ WSInfo fileitem = (WSInfo) iter.next();
+ exist = false;
+ for (int i = 0; i < size; i++) {
+ filename = (String) currentjars.get(i);
+ if (filename.equals(fileitem.getFilename())) {
+ exist = true;
+ break;
+ }
+ }
+
+ if (!exist) {
+ tempvector.add(fileitem);
+ WSInfo wsInfo = new WSInfo(fileitem.getFilename(),
+ fileitem.getLastmodifieddate());
+ deployer.addWSToUndeploy(wsInfo);//this is to be undeploye
+ }
+
+ }
+
+ for (int i = 0; i < tempvector.size(); i++) {
+ WSInfo fileItem = (WSInfo) tempvector.get(i);
+ jarlist.remove(fileItem);
+ }
+ tempvector.clear();
+ currentjars.clear();
+ }
+
+
+ /**
+ *
+ */
+ public void update() {
+ checkForUndeploye();
+ if (deployer.isHotUpdate()) {
+ deployer.unDeploy();
+ }
+ deployer.doDeploy();
+
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/WSInfoList.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/DeploymentIterator.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/DeploymentIterator.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/DeploymentIterator.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/DeploymentIterator.java Thu Sep 15 11:52:11 2005
@@ -1,31 +1,31 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.deployment.scheduler;
-
-import java.util.Calendar;
-import java.util.Date;
-
-public class DeploymentIterator {
-
- private Calendar calendar = Calendar.getInstance();
-
- public Date next() {
- calendar.add(Calendar.SECOND, 10);
- return calendar.getTime();
- }
-
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.deployment.scheduler;
+
+import java.util.Calendar;
+import java.util.Date;
+
+public class DeploymentIterator {
+
+ private Calendar calendar = Calendar.getInstance();
+
+ public Date next() {
+ calendar.add(Calendar.SECOND, 10);
+ return calendar.getTime();
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/DeploymentIterator.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/Scheduler.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/Scheduler.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/Scheduler.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/Scheduler.java Thu Sep 15 11:52:11 2005
@@ -1,88 +1,88 @@
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed 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.axis2.deployment.scheduler;
-
-import java.util.Date;
-import java.util.Timer;
-import java.util.TimerTask;
-
-public class Scheduler {
-
- private final Timer timer = new Timer();
-
- public class SchedulerTimerTask extends TimerTask {
-
- private SchedulerTask schedulerTask;
- private DeploymentIterator iterator;
-
-
- public SchedulerTimerTask(SchedulerTask schedulerTask,
- DeploymentIterator iterator) {
- this.schedulerTask = schedulerTask;
- this.iterator = iterator;
- }
-
- public void run() {
- schedulerTask.run();
- reschedule(schedulerTask, iterator);
- }
- }
-
- /**
- * Schedules the specified task for execution according to the specified schedule.
- * If times specified by the <code>ScheduleIterator</code> are in the past they are
- * scheduled for immediate execution.
- *
- * @param schedulerTask task to be scheduled
- * @param iterator iterator that describes the schedule
- * @throws IllegalStateException if task was already scheduled or cancelled,
- * scheduler was cancelled, or scheduler thread terminated.
- */
-
- public void schedule(SchedulerTask schedulerTask,
- DeploymentIterator iterator) {
-
- Date time = iterator.next();
- if (time == null) {
- schedulerTask.cancel();
- } else {
- synchronized (schedulerTask.lock) {
- schedulerTask.state = SchedulerTask.SCHEDULED;
- schedulerTask.timerTask =
- new SchedulerTimerTask(schedulerTask, iterator);
- timer.schedule(schedulerTask.timerTask, time);
- }
- }
- }
-
- private void reschedule(SchedulerTask schedulerTask,
- DeploymentIterator iterator) {
- Date time = iterator.next();
- if (time == null) {
- schedulerTask.cancel();
- } else {
- synchronized (schedulerTask.lock) {
- if (schedulerTask.state != SchedulerTask.CANCELLED) {
- schedulerTask.timerTask =
- new SchedulerTimerTask(schedulerTask, iterator);
- timer.schedule(schedulerTask.timerTask, time);
- }
- }
- }
- }
-
-}
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed 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.axis2.deployment.scheduler;
+
+import java.util.Date;
+import java.util.Timer;
+import java.util.TimerTask;
+
+public class Scheduler {
+
+ private final Timer timer = new Timer();
+
+ public class SchedulerTimerTask extends TimerTask {
+
+ private SchedulerTask schedulerTask;
+ private DeploymentIterator iterator;
+
+
+ public SchedulerTimerTask(SchedulerTask schedulerTask,
+ DeploymentIterator iterator) {
+ this.schedulerTask = schedulerTask;
+ this.iterator = iterator;
+ }
+
+ public void run() {
+ schedulerTask.run();
+ reschedule(schedulerTask, iterator);
+ }
+ }
+
+ /**
+ * Schedules the specified task for execution according to the specified schedule.
+ * If times specified by the <code>ScheduleIterator</code> are in the past they are
+ * scheduled for immediate execution.
+ *
+ * @param schedulerTask task to be scheduled
+ * @param iterator iterator that describes the schedule
+ * @throws IllegalStateException if task was already scheduled or cancelled,
+ * scheduler was cancelled, or scheduler thread terminated.
+ */
+
+ public void schedule(SchedulerTask schedulerTask,
+ DeploymentIterator iterator) {
+
+ Date time = iterator.next();
+ if (time == null) {
+ schedulerTask.cancel();
+ } else {
+ synchronized (schedulerTask.lock) {
+ schedulerTask.state = SchedulerTask.SCHEDULED;
+ schedulerTask.timerTask =
+ new SchedulerTimerTask(schedulerTask, iterator);
+ timer.schedule(schedulerTask.timerTask, time);
+ }
+ }
+ }
+
+ private void reschedule(SchedulerTask schedulerTask,
+ DeploymentIterator iterator) {
+ Date time = iterator.next();
+ if (time == null) {
+ schedulerTask.cancel();
+ } else {
+ synchronized (schedulerTask.lock) {
+ if (schedulerTask.state != SchedulerTask.CANCELLED) {
+ schedulerTask.timerTask =
+ new SchedulerTimerTask(schedulerTask, iterator);
+ timer.schedule(schedulerTask.timerTask, time);
+ }
+ }
+ }
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/Scheduler.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/SchedulerTask.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/SchedulerTask.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/SchedulerTask.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/SchedulerTask.java Thu Sep 15 11:52:11 2005
@@ -1,77 +1,77 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.deployment.scheduler;
-
-import org.apache.axis2.deployment.DeploymentEngine;
-import org.apache.axis2.deployment.listener.RepositoryListener;
-import org.apache.axis2.deployment.listener.RepositoryListenerImpl;
-
-import java.util.TimerTask;
-
-public class SchedulerTask implements Runnable {
-
- final Object lock = new Object();
-
- private RepositoryListener wsListener;
-
- int state = 0;
- static final int SCHEDULED = 1;
- static final int CANCELLED = 2;
-
- TimerTask timerTask;
-
- /**
- * Creates a new scheduler task.
- */
-
- public SchedulerTask(DeploymentEngine deploy_engine, String folderName,
- boolean extarctServiceArchive) {
- wsListener = new RepositoryListenerImpl(folderName, deploy_engine,extarctServiceArchive);
- }
-
- /**
- * The action to be performed by this scheduler task.
- */
-
- public void run() {
- checkRepositary();
- }
-
- private void checkRepositary() {
- ((RepositoryListenerImpl) wsListener).startListent();
- }
-
- /**
- * Cancels this scheduler task.
- * <p/>
- * This method may be called repeatedly; the second and subsequent calls have no effect.
- *
- * @return true if this task was already scheduled to run
- */
-
- public boolean cancel() {
- synchronized (lock) {
- if (timerTask != null) {
- timerTask.cancel();
- }
- boolean result = (state == SCHEDULED);
- state = CANCELLED;
- return result;
- }
- }
-
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.deployment.scheduler;
+
+import org.apache.axis2.deployment.DeploymentEngine;
+import org.apache.axis2.deployment.listener.RepositoryListener;
+import org.apache.axis2.deployment.listener.RepositoryListenerImpl;
+
+import java.util.TimerTask;
+
+public class SchedulerTask implements Runnable {
+
+ final Object lock = new Object();
+
+ private RepositoryListener wsListener;
+
+ int state = 0;
+ static final int SCHEDULED = 1;
+ static final int CANCELLED = 2;
+
+ TimerTask timerTask;
+
+ /**
+ * Creates a new scheduler task.
+ */
+
+ public SchedulerTask(DeploymentEngine deploy_engine, String folderName,
+ boolean extarctServiceArchive) {
+ wsListener = new RepositoryListenerImpl(folderName, deploy_engine,extarctServiceArchive);
+ }
+
+ /**
+ * The action to be performed by this scheduler task.
+ */
+
+ public void run() {
+ checkRepositary();
+ }
+
+ private void checkRepositary() {
+ ((RepositoryListenerImpl) wsListener).startListent();
+ }
+
+ /**
+ * Cancels this scheduler task.
+ * <p/>
+ * This method may be called repeatedly; the second and subsequent calls have no effect.
+ *
+ * @return true if this task was already scheduled to run
+ */
+
+ public boolean cancel() {
+ synchronized (lock) {
+ if (timerTask != null) {
+ timerTask.cancel();
+ }
+ boolean result = (state == SCHEDULED);
+ state = CANCELLED;
+ return result;
+ }
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/scheduler/SchedulerTask.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/PhasesInfo.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/PhasesInfo.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/PhasesInfo.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/PhasesInfo.java Thu Sep 15 11:52:11 2005
@@ -1,133 +1,133 @@
-package org.apache.axis2.deployment.util;
-
-import org.apache.axis2.description.OperationDescription;
-import org.apache.axis2.engine.Phase;
-import org.apache.axis2.phaseresolver.PhaseMetadata;
-
-import java.util.ArrayList;
-
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed 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.
-*
-*
-*/
-
-/**
- * Author : Deepal Jayasinghe
- * Date: Jul 8, 2005
- * Time: 3:49:28 PM
- */
-public class PhasesInfo {
-
- private ArrayList INPhases;
- private ArrayList OUTPhases;
- private ArrayList IN_FaultPhases;
- private ArrayList OUT_FaultPhases;
-
- private ArrayList oprationINPhases;
- private ArrayList oprationOUTPhases;
- private ArrayList oprationIN_FaultPhases;
- private ArrayList oprationOUT_FaultPhases;
-
- public void setINPhases(ArrayList INPhases) {
- this.INPhases = INPhases;
- }
-
- public void setOUTPhases(ArrayList OUTPhases) {
- this.OUTPhases = OUTPhases;
- }
-
- public void setIN_FaultPhases(ArrayList IN_FaultPhases) {
- this.IN_FaultPhases = IN_FaultPhases;
- }
-
- public void setOUT_FaultPhases(ArrayList OUT_FaultPhases) {
- this.OUT_FaultPhases = OUT_FaultPhases;
- }
-
- public ArrayList getINPhases() {
- return INPhases;
- }
-
- public ArrayList getOUTPhases() {
- return OUTPhases;
- }
-
- public ArrayList getIN_FaultPhases() {
- return IN_FaultPhases;
- }
-
- public ArrayList getOUT_FaultPhases() {
- return OUT_FaultPhases;
- }
-
- public ArrayList getOperationInPhases() {
- oprationINPhases = new ArrayList();
- oprationINPhases.add(new Phase(PhaseMetadata.PHASE_POLICY_DETERMINATION));
- for (int i = 0; i < INPhases.size(); i++) {
- String phaseName = (String) INPhases.get(i);
- if (PhaseMetadata.PHASE_TRANSPORTIN.equals(phaseName) ||
- PhaseMetadata.PHASE_PRE_DISPATCH.equals(phaseName) ||
- PhaseMetadata.PHASE_DISPATCH.equals(phaseName) ||
- PhaseMetadata.PHASE_POST_DISPATCH.equals(phaseName)) {
- } else {
- oprationINPhases.add(new Phase(phaseName));
- }
- }
- return oprationINPhases;
- }
-
- public ArrayList getOperationOutPhases() {
- oprationOUTPhases = new ArrayList();
- for (int i = 0; i < OUTPhases.size(); i++) {
- String phaseName = (String) OUTPhases.get(i);
- if (PhaseMetadata.PHASE_TRANSPORT_OUT.equals(phaseName)) {
- } else {
- oprationOUTPhases.add(new Phase(phaseName));
- }
- }
- oprationOUTPhases.add(new Phase(PhaseMetadata.PHASE_POLICY_DETERMINATION));
- oprationOUTPhases.add(new Phase(PhaseMetadata.PHASE_MESSAGE_OUT));
- return oprationOUTPhases;
- }
-
- public ArrayList getOperationInFaultPhases() {
- oprationIN_FaultPhases = new ArrayList();
- for (int i = 0; i < IN_FaultPhases.size(); i++) {
- String phaseName = (String) IN_FaultPhases.get(i);
- oprationIN_FaultPhases.add(new Phase(phaseName));
- }
- return oprationIN_FaultPhases;
- }
-
- public ArrayList getOperationOutFaultPhases() {
- oprationOUT_FaultPhases = new ArrayList();
- for (int i = 0; i < OUT_FaultPhases.size(); i++) {
- String phaseName = (String) OUT_FaultPhases.get(i);
- oprationOUT_FaultPhases.add(new Phase(phaseName));
- }
- return oprationOUT_FaultPhases;
- }
-
- public void setOperationPhases(OperationDescription operation) {
- if (operation != null) {
- operation.setRemainingPhasesInFlow(getOperationInPhases());
- operation.setPhasesOutFlow(getOperationOutPhases());
- operation.setPhasesInFaultFlow(getOperationInFaultPhases());
- operation.setPhasesOutFaultFlow(getOperationOutFaultPhases());
- }
- }
-
-}
+package org.apache.axis2.deployment.util;
+
+import org.apache.axis2.description.OperationDescription;
+import org.apache.axis2.engine.Phase;
+import org.apache.axis2.phaseresolver.PhaseMetadata;
+
+import java.util.ArrayList;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed 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.
+*
+*
+*/
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: Jul 8, 2005
+ * Time: 3:49:28 PM
+ */
+public class PhasesInfo {
+
+ private ArrayList INPhases;
+ private ArrayList OUTPhases;
+ private ArrayList IN_FaultPhases;
+ private ArrayList OUT_FaultPhases;
+
+ private ArrayList oprationINPhases;
+ private ArrayList oprationOUTPhases;
+ private ArrayList oprationIN_FaultPhases;
+ private ArrayList oprationOUT_FaultPhases;
+
+ public void setINPhases(ArrayList INPhases) {
+ this.INPhases = INPhases;
+ }
+
+ public void setOUTPhases(ArrayList OUTPhases) {
+ this.OUTPhases = OUTPhases;
+ }
+
+ public void setIN_FaultPhases(ArrayList IN_FaultPhases) {
+ this.IN_FaultPhases = IN_FaultPhases;
+ }
+
+ public void setOUT_FaultPhases(ArrayList OUT_FaultPhases) {
+ this.OUT_FaultPhases = OUT_FaultPhases;
+ }
+
+ public ArrayList getINPhases() {
+ return INPhases;
+ }
+
+ public ArrayList getOUTPhases() {
+ return OUTPhases;
+ }
+
+ public ArrayList getIN_FaultPhases() {
+ return IN_FaultPhases;
+ }
+
+ public ArrayList getOUT_FaultPhases() {
+ return OUT_FaultPhases;
+ }
+
+ public ArrayList getOperationInPhases() {
+ oprationINPhases = new ArrayList();
+ oprationINPhases.add(new Phase(PhaseMetadata.PHASE_POLICY_DETERMINATION));
+ for (int i = 0; i < INPhases.size(); i++) {
+ String phaseName = (String) INPhases.get(i);
+ if (PhaseMetadata.PHASE_TRANSPORTIN.equals(phaseName) ||
+ PhaseMetadata.PHASE_PRE_DISPATCH.equals(phaseName) ||
+ PhaseMetadata.PHASE_DISPATCH.equals(phaseName) ||
+ PhaseMetadata.PHASE_POST_DISPATCH.equals(phaseName)) {
+ } else {
+ oprationINPhases.add(new Phase(phaseName));
+ }
+ }
+ return oprationINPhases;
+ }
+
+ public ArrayList getOperationOutPhases() {
+ oprationOUTPhases = new ArrayList();
+ for (int i = 0; i < OUTPhases.size(); i++) {
+ String phaseName = (String) OUTPhases.get(i);
+ if (PhaseMetadata.PHASE_TRANSPORT_OUT.equals(phaseName)) {
+ } else {
+ oprationOUTPhases.add(new Phase(phaseName));
+ }
+ }
+ oprationOUTPhases.add(new Phase(PhaseMetadata.PHASE_POLICY_DETERMINATION));
+ oprationOUTPhases.add(new Phase(PhaseMetadata.PHASE_MESSAGE_OUT));
+ return oprationOUTPhases;
+ }
+
+ public ArrayList getOperationInFaultPhases() {
+ oprationIN_FaultPhases = new ArrayList();
+ for (int i = 0; i < IN_FaultPhases.size(); i++) {
+ String phaseName = (String) IN_FaultPhases.get(i);
+ oprationIN_FaultPhases.add(new Phase(phaseName));
+ }
+ return oprationIN_FaultPhases;
+ }
+
+ public ArrayList getOperationOutFaultPhases() {
+ oprationOUT_FaultPhases = new ArrayList();
+ for (int i = 0; i < OUT_FaultPhases.size(); i++) {
+ String phaseName = (String) OUT_FaultPhases.get(i);
+ oprationOUT_FaultPhases.add(new Phase(phaseName));
+ }
+ return oprationOUT_FaultPhases;
+ }
+
+ public void setOperationPhases(OperationDescription operation) {
+ if (operation != null) {
+ operation.setRemainingPhasesInFlow(getOperationInPhases());
+ operation.setPhasesOutFlow(getOperationOutPhases());
+ operation.setPhasesInFaultFlow(getOperationInFaultPhases());
+ operation.setPhasesOutFaultFlow(getOperationOutFaultPhases());
+ }
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/util/PhasesInfo.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisDescWSDLComponentFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisDescWSDLComponentFactory.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisDescWSDLComponentFactory.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisDescWSDLComponentFactory.java Thu Sep 15 11:52:11 2005
@@ -1,102 +1,102 @@
-package org.apache.axis2.description;
-
-import org.apache.axis2.wsdl.builder.WSDLComponentFactory;
-import org.apache.wsdl.*;
-import org.apache.wsdl.extensions.ExtensionFactory;
-import org.apache.wsdl.extensions.impl.ExtensionFactoryImpl;
-import org.apache.wsdl.impl.*;
-
-/**
- * @author chathura@opensource.lk
- */
-public class AxisDescWSDLComponentFactory implements WSDLComponentFactory {
-
-
- public WSDLDescription createDescription() {
- return new WSDLDescriptionImpl();
- }
-
-
- public WSDLService createService() {
- return new ServiceDescription();
- }
-
-
- public WSDLInterface createInterface() {
- return new WSDLInterfaceImpl();
- }
-
-
- public WSDLTypes createTypes() {
- return new WSDLTypesImpl();
- }
-
-
- public WSDLBinding createBinding() {
- return new WSDLBindingImpl();
- }
-
-
- public WSDLOperation createOperation() {
- return new OperationDescription();
- }
-
-
- public WSDLEndpoint createEndpoint() {
- return new WSDLEndpointImpl();
- }
-
-
- public WSDLFeature createFeature() {
- return new WSDLFeatureImpl();
- }
-
-
- public WSDLImport createImport() {
- return new WSDLImportImpl();
- }
-
-
- public WSDLInclude createInclude() {
- return new WSDLIncludeImpl();
- }
-
-
- public WSDLProperty createProperty() {
- return new WSDLPropertyImpl();
- }
-
- public MessageReference createMessageReference() {
- return new MessageReferenceImpl();
- }
-
- public WSDLBindingMessageReference createWSDLBindingMessageReference() {
- return new WSDLBindingMessageReferenceImpl();
- }
-
- public WSDLBindingOperation createWSDLBindingOperation() {
- return new WSDLBindingOperationImpl();
- }
-
- public WSDLExtensibilityAttribute createWSDLExtensibilityAttribute() {
- return new WSDLExtensibilityAttributeImpl();
- }
-
- /**
- * @return A new Instance of <code>ExtensionFactory</code> that
- * is capable of creating the correct <code>ExtensibilityElement</code>
- * given a <code>QName</code>.
- */
- public ExtensionFactory createExtensionFactory() {
- return new ExtensionFactoryImpl();
- }
-
- public WSDLFaultReference createFaultReference() {
- return new WSDLFaultReferenceImpl();
- }
-
- public WSDLBindingFault createBindingFault() {
- return new WSDLBindingFaultImpl();
- }
-
-}
+package org.apache.axis2.description;
+
+import org.apache.axis2.wsdl.builder.WSDLComponentFactory;
+import org.apache.wsdl.*;
+import org.apache.wsdl.extensions.ExtensionFactory;
+import org.apache.wsdl.extensions.impl.ExtensionFactoryImpl;
+import org.apache.wsdl.impl.*;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class AxisDescWSDLComponentFactory implements WSDLComponentFactory {
+
+
+ public WSDLDescription createDescription() {
+ return new WSDLDescriptionImpl();
+ }
+
+
+ public WSDLService createService() {
+ return new ServiceDescription();
+ }
+
+
+ public WSDLInterface createInterface() {
+ return new WSDLInterfaceImpl();
+ }
+
+
+ public WSDLTypes createTypes() {
+ return new WSDLTypesImpl();
+ }
+
+
+ public WSDLBinding createBinding() {
+ return new WSDLBindingImpl();
+ }
+
+
+ public WSDLOperation createOperation() {
+ return new OperationDescription();
+ }
+
+
+ public WSDLEndpoint createEndpoint() {
+ return new WSDLEndpointImpl();
+ }
+
+
+ public WSDLFeature createFeature() {
+ return new WSDLFeatureImpl();
+ }
+
+
+ public WSDLImport createImport() {
+ return new WSDLImportImpl();
+ }
+
+
+ public WSDLInclude createInclude() {
+ return new WSDLIncludeImpl();
+ }
+
+
+ public WSDLProperty createProperty() {
+ return new WSDLPropertyImpl();
+ }
+
+ public MessageReference createMessageReference() {
+ return new MessageReferenceImpl();
+ }
+
+ public WSDLBindingMessageReference createWSDLBindingMessageReference() {
+ return new WSDLBindingMessageReferenceImpl();
+ }
+
+ public WSDLBindingOperation createWSDLBindingOperation() {
+ return new WSDLBindingOperationImpl();
+ }
+
+ public WSDLExtensibilityAttribute createWSDLExtensibilityAttribute() {
+ return new WSDLExtensibilityAttributeImpl();
+ }
+
+ /**
+ * @return A new Instance of <code>ExtensionFactory</code> that
+ * is capable of creating the correct <code>ExtensibilityElement</code>
+ * given a <code>QName</code>.
+ */
+ public ExtensionFactory createExtensionFactory() {
+ return new ExtensionFactoryImpl();
+ }
+
+ public WSDLFaultReference createFaultReference() {
+ return new WSDLFaultReferenceImpl();
+ }
+
+ public WSDLBindingFault createBindingFault() {
+ return new WSDLBindingFaultImpl();
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisDescWSDLComponentFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/DefinedParameters.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/DescriptionConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/DescriptionConstants.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/DescriptionConstants.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/DescriptionConstants.java Thu Sep 15 11:52:11 2005
@@ -1,106 +1,106 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.description;
-
-/**
- * @author chathura@opensource.lk
- */
-public interface DescriptionConstants {
- /**
- * Field EXECUTION_CHAIN_KEY
- */
- public static final String EXECUTION_CHAIN_KEY = "EXECUTION_CHAIN_KEY";
-
- /**
- * Field EXECUTION_OUT_CHAIN_KEY
- */
- public static final String EXECUTION_OUT_CHAIN_KEY =
- "EXECUTION_OUT_CHAIN_KEY";
-
- /**
- * Field EXECUTION_FAULT_CHAIN_KEY
- */
- public static final String EXECUTION_FAULT_CHAIN_KEY =
- "EXECUTION_FAULT_CHAIN_KEY";
-
- /**
- * Field MODULEREF_KEY
- */
- public static final String MODULEREF_KEY = "MODULEREF_KEY";
-
- /**
- * Field OPERATION_KEY
- */
- public static final String OPERATION_KEY = "OPERATION_KEY";
-
- /**
- * Field CLASSLOADER_KEY
- */
- public static final String CLASSLOADER_KEY = "CLASSLOADER_KEY";
-
- /**
- * Field CONTEXTPATH_KEY
- */
- public static final String CONTEXTPATH_KEY = "CONTEXTPATH_KEY";
-
- /**
- * Field PROVIDER_KEY
- */
- public static final String MESSAGE_RECEIVER_KEY = "PROVIDER_KEY";
-
- /**
- * Field STYLE_KEY
- */
- public static final String STYLE_KEY = "STYLE_KEY";
-
- /**
- * Field PARAMETER_KEY
- */
- public static final String PARAMETER_KEY = "PARAMETER_KEY";
-
- /**
- * Field INFLOW_KEY
- */
- public static final String INFLOW_KEY = "INFLOW_KEY";
-
- /**
- * Field OUTFLOW_KEY
- */
- public static final String OUTFLOW_KEY = "OUTFLOW_KEY";
-
- /**
- * Field FAULTFLOW_KEY
- */
- public static final String IN_FAULTFLOW_KEY = "IN_FAULTFLOW_KEY";
- public static final String OUT_FAULTFLOW_KEY = "OUT_FAULTFLOW_KEY";
-
- /**
- * Field PHASES_KEY
- */
- public static final String PHASES_KEY = "PHASES_KEY";
-
- /**
- * Field SERVICE_CLASS
- */
- public static final String SERVICE_CLASS = "SERVICE_CLASS";
-
- /**
- * Field SERVICE_CLASS_NAME
- */
- public static final String SERVICE_CLASS_NAME = "SERVICE_CLASS_NAME";
-
-
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.description;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public interface DescriptionConstants {
+ /**
+ * Field EXECUTION_CHAIN_KEY
+ */
+ public static final String EXECUTION_CHAIN_KEY = "EXECUTION_CHAIN_KEY";
+
+ /**
+ * Field EXECUTION_OUT_CHAIN_KEY
+ */
+ public static final String EXECUTION_OUT_CHAIN_KEY =
+ "EXECUTION_OUT_CHAIN_KEY";
+
+ /**
+ * Field EXECUTION_FAULT_CHAIN_KEY
+ */
+ public static final String EXECUTION_FAULT_CHAIN_KEY =
+ "EXECUTION_FAULT_CHAIN_KEY";
+
+ /**
+ * Field MODULEREF_KEY
+ */
+ public static final String MODULEREF_KEY = "MODULEREF_KEY";
+
+ /**
+ * Field OPERATION_KEY
+ */
+ public static final String OPERATION_KEY = "OPERATION_KEY";
+
+ /**
+ * Field CLASSLOADER_KEY
+ */
+ public static final String CLASSLOADER_KEY = "CLASSLOADER_KEY";
+
+ /**
+ * Field CONTEXTPATH_KEY
+ */
+ public static final String CONTEXTPATH_KEY = "CONTEXTPATH_KEY";
+
+ /**
+ * Field PROVIDER_KEY
+ */
+ public static final String MESSAGE_RECEIVER_KEY = "PROVIDER_KEY";
+
+ /**
+ * Field STYLE_KEY
+ */
+ public static final String STYLE_KEY = "STYLE_KEY";
+
+ /**
+ * Field PARAMETER_KEY
+ */
+ public static final String PARAMETER_KEY = "PARAMETER_KEY";
+
+ /**
+ * Field INFLOW_KEY
+ */
+ public static final String INFLOW_KEY = "INFLOW_KEY";
+
+ /**
+ * Field OUTFLOW_KEY
+ */
+ public static final String OUTFLOW_KEY = "OUTFLOW_KEY";
+
+ /**
+ * Field FAULTFLOW_KEY
+ */
+ public static final String IN_FAULTFLOW_KEY = "IN_FAULTFLOW_KEY";
+ public static final String OUT_FAULTFLOW_KEY = "OUT_FAULTFLOW_KEY";
+
+ /**
+ * Field PHASES_KEY
+ */
+ public static final String PHASES_KEY = "PHASES_KEY";
+
+ /**
+ * Field SERVICE_CLASS
+ */
+ public static final String SERVICE_CLASS = "SERVICE_CLASS";
+
+ /**
+ * Field SERVICE_CLASS_NAME
+ */
+ public static final String SERVICE_CLASS_NAME = "SERVICE_CLASS_NAME";
+
+
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/DescriptionConstants.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Flow.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Flow.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Flow.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Flow.java Thu Sep 15 11:52:11 2005
@@ -1,44 +1,44 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.description;
-
-/**
- * Represents logical collection of handlers. The order of Handlers do not have
- * any symantics.
- */
-public interface Flow {
- /**
- * Method getHandlerCount
- *
- * @return
- */
- public int getHandlerCount();
-
- /**
- * Method getHandler
- *
- * @param index
- * @return
- */
- public HandlerDescription getHandler(int index);
-
- /**
- * Method addHandler
- *
- * @param handler
- */
- public void addHandler(HandlerDescription handler);
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.description;
+
+/**
+ * Represents logical collection of handlers. The order of Handlers do not have
+ * any symantics.
+ */
+public interface Flow {
+ /**
+ * Method getHandlerCount
+ *
+ * @return
+ */
+ public int getHandlerCount();
+
+ /**
+ * Method getHandler
+ *
+ * @param index
+ * @return
+ */
+ public HandlerDescription getHandler(int index);
+
+ /**
+ * Method addHandler
+ *
+ * @param handler
+ */
+ public void addHandler(HandlerDescription handler);
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/Flow.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowImpl.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowImpl.java Thu Sep 15 11:52:11 2005
@@ -1,64 +1,64 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.description;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Class FlowImpl
- */
-public class FlowImpl implements Flow {
- /**
- * Field list
- */
- protected final List list;
-
- /**
- * Constructor FlowImpl
- */
- public FlowImpl() {
- list = new ArrayList();
- }
-
- /**
- * Method addHandler
- *
- * @param handler
- */
- public void addHandler(HandlerDescription handler) {
- list.add(handler);
- }
-
- /**
- * Method getHandler
- *
- * @param index
- * @return
- */
- public HandlerDescription getHandler(int index) {
- return (HandlerDescription) list.get(index);
- }
-
- /**
- * Method getHandlerCount
- *
- * @return
- */
- public int getHandlerCount() {
- return list.size();
- }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.description;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Class FlowImpl
+ */
+public class FlowImpl implements Flow {
+ /**
+ * Field list
+ */
+ protected final List list;
+
+ /**
+ * Constructor FlowImpl
+ */
+ public FlowImpl() {
+ list = new ArrayList();
+ }
+
+ /**
+ * Method addHandler
+ *
+ * @param handler
+ */
+ public void addHandler(HandlerDescription handler) {
+ list.add(handler);
+ }
+
+ /**
+ * Method getHandler
+ *
+ * @param index
+ * @return
+ */
+ public HandlerDescription getHandler(int index) {
+ return (HandlerDescription) list.get(index);
+ }
+
+ /**
+ * Method getHandlerCount
+ *
+ * @return
+ */
+ public int getHandlerCount() {
+ return list.size();
+ }
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowInclude.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowInclude.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowInclude.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowInclude.java Thu Sep 15 11:52:11 2005
@@ -1,73 +1,73 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.description;
-
-/**
- * Interface FlowInclude
- */
-public interface FlowInclude {
-
- /**
- * Method getInFlow
- *
- * @return
- */
- public Flow getInFlow();
-
- /**
- * Method setInFlow
- *
- * @param inFlow
- */
- public void setInFlow(Flow inFlow);
-
- /**
- * Method getOutFlow
- *
- * @return
- */
- public Flow getOutFlow();
-
- /**
- * Method setOutFlow
- *
- * @param outFlow
- */
- public void setOutFlow(Flow outFlow);
-
- /**
- * Method getFaultInFlow
- *
- * @return
- */
- public Flow getFaultInFlow();
-
- /**
- * Method setFaultInFlow
- *
- * @param faultFlow
- */
- public void setFaultInFlow(Flow faultFlow);
-
- public Flow getFaultOutFlow();
-
- /**
- * Method setFaultInFlow
- *
- * @param faultFlow
- */
- public void setFaultOutFlow(Flow faultFlow);
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.description;
+
+/**
+ * Interface FlowInclude
+ */
+public interface FlowInclude {
+
+ /**
+ * Method getInFlow
+ *
+ * @return
+ */
+ public Flow getInFlow();
+
+ /**
+ * Method setInFlow
+ *
+ * @param inFlow
+ */
+ public void setInFlow(Flow inFlow);
+
+ /**
+ * Method getOutFlow
+ *
+ * @return
+ */
+ public Flow getOutFlow();
+
+ /**
+ * Method setOutFlow
+ *
+ * @param outFlow
+ */
+ public void setOutFlow(Flow outFlow);
+
+ /**
+ * Method getFaultInFlow
+ *
+ * @return
+ */
+ public Flow getFaultInFlow();
+
+ /**
+ * Method setFaultInFlow
+ *
+ * @param faultFlow
+ */
+ public void setFaultInFlow(Flow faultFlow);
+
+ public Flow getFaultOutFlow();
+
+ /**
+ * Method setFaultInFlow
+ *
+ * @param faultFlow
+ */
+ public void setFaultOutFlow(Flow faultFlow);
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowInclude.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowIncludeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowIncludeImpl.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowIncludeImpl.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowIncludeImpl.java Thu Sep 15 11:52:11 2005
@@ -1,100 +1,100 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.description;
-
-/**
- * Class FlowIncludeImpl
- */
-public class FlowIncludeImpl implements FlowInclude {
- /**
- * Field in
- */
- private Flow in;
-
- /**
- * Field out
- */
- private Flow out;
-
- /**
- * Field fault
- */
- private Flow In_fault;
-
- private Flow Out_fault;
-
- /**
- * Method getFaultInFlow
- *
- * @return
- */
- public Flow getFaultInFlow() {
- return In_fault;
- }
-
- /**
- * Method getInFlow
- *
- * @return
- */
- public Flow getInFlow() {
- return in;
- }
-
- /**
- * Method getOutFlow
- *
- * @return
- */
- public Flow getOutFlow() {
- return out;
- }
-
- /**
- * Method setFaultInFlow
- *
- * @param flow
- */
- public void setFaultInFlow(Flow flow) {
- this.In_fault = flow;
- }
-
- public Flow getFaultOutFlow() {
- return this.Out_fault; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- public void setFaultOutFlow(Flow faultFlow) {
- this.Out_fault = faultFlow;
- }
-
- /**
- * Method setInFlow
- *
- * @param flow
- */
- public void setInFlow(Flow flow) {
- this.in = flow;
- }
-
- /**
- * Method setOutFlow
- *
- * @param flow
- */
- public void setOutFlow(Flow flow) {
- this.out = flow;
- }
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.description;
+
+/**
+ * Class FlowIncludeImpl
+ */
+public class FlowIncludeImpl implements FlowInclude {
+ /**
+ * Field in
+ */
+ private Flow in;
+
+ /**
+ * Field out
+ */
+ private Flow out;
+
+ /**
+ * Field fault
+ */
+ private Flow In_fault;
+
+ private Flow Out_fault;
+
+ /**
+ * Method getFaultInFlow
+ *
+ * @return
+ */
+ public Flow getFaultInFlow() {
+ return In_fault;
+ }
+
+ /**
+ * Method getInFlow
+ *
+ * @return
+ */
+ public Flow getInFlow() {
+ return in;
+ }
+
+ /**
+ * Method getOutFlow
+ *
+ * @return
+ */
+ public Flow getOutFlow() {
+ return out;
+ }
+
+ /**
+ * Method setFaultInFlow
+ *
+ * @param flow
+ */
+ public void setFaultInFlow(Flow flow) {
+ this.In_fault = flow;
+ }
+
+ public Flow getFaultOutFlow() {
+ return this.Out_fault; //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public void setFaultOutFlow(Flow faultFlow) {
+ this.Out_fault = faultFlow;
+ }
+
+ /**
+ * Method setInFlow
+ *
+ * @param flow
+ */
+ public void setInFlow(Flow flow) {
+ this.in = flow;
+ }
+
+ /**
+ * Method setOutFlow
+ *
+ * @param flow
+ */
+ public void setOutFlow(Flow flow) {
+ this.out = flow;
+ }
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/FlowIncludeImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/HandlerDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/HandlerDescription.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/HandlerDescription.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/HandlerDescription.java Thu Sep 15 11:52:11 2005
@@ -1,177 +1,177 @@
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed 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.axis2.description;
-
-import org.apache.axis2.engine.Handler;
-import org.apache.axis2.AxisFault;
-
-import javax.xml.namespace.QName;
-import java.util.ArrayList;
-
-/**
- * represent the deployment information about the handler
- */
-public class HandlerDescription implements ParameterInclude {
- /**
- * Field parameterInclude
- */
- private final ParameterInclude parameterInclude;
-
- /**
- * Field name
- */
- private QName name;
-
- /**
- * Field rules
- */
- private PhaseRule rules;
-
- /**
- * Field handler
- */
- private Handler handler;
-
- /**
- * Field className
- */
- private String className;
-
- private ParameterInclude parent;
-
- /**
- * Constructor HandlerDescription
- */
- public HandlerDescription() {
- this.parameterInclude = new ParameterIncludeImpl();
- this.rules = new PhaseRule();
- }
-
- /**
- * Constructor HandlerDescription
- *
- * @param name
- */
- public HandlerDescription(QName name) {
- this();
- this.name = name;
- }
-
- /**
- * @return
- */
- public QName getName() {
- return name;
- }
-
- /**
- * Method getRules
- *
- * @return
- */
- public PhaseRule getRules() {
- return rules;
- }
-
- /**
- * Method setRules
- *
- * @param rules
- */
- public void setRules(PhaseRule rules) {
- this.rules = rules;
- }
-
- /**
- * @param name
- */
- public void setName(QName name) {
- this.name = name;
- }
-
- /**
- * @param param
- */
- public void addParameter(Parameter param) throws AxisFault{
- if(isParamterLocked(param.getName())){
- throw new AxisFault("Parmter is locked can not overide: " + param.getName());
- } else{
- parameterInclude.addParameter(param);
- }
- }
-
- /**
- * @param name
- * @return
- */
- public Parameter getParameter(String name) {
- return parameterInclude.getParameter(name);
- }
-
- public ArrayList getParameters() {
- return parameterInclude.getParameters();
- }
-
- //to check whether the paramter is locked at any levle
- public boolean isParamterLocked(String paramterName) {
- if(parent != null){
- if(parent.isParamterLocked(paramterName)){
- return true;
- }
- }
- return parameterInclude.isParamterLocked(paramterName);
- }
-
- /**
- * @return
- */
- public Handler getHandler() {
- return handler;
- }
-
- /**
- * @param handler
- */
- public void setHandler(Handler handler) {
- this.handler = handler;
- }
-
- /**
- * Method getClassName
- *
- * @return
- */
- public String getClassName() {
- return className;
- }
-
- /**
- * Method setClassName
- *
- * @param className
- */
- public void setClassName(String className) {
- this.className = className;
- }
-
- public ParameterInclude getParent() {
- return parent;
- }
-
- public void setParent(ParameterInclude parent) {
- this.parent = parent;
- }
-}
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed 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.axis2.description;
+
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.AxisFault;
+
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+
+/**
+ * represent the deployment information about the handler
+ */
+public class HandlerDescription implements ParameterInclude {
+ /**
+ * Field parameterInclude
+ */
+ private final ParameterInclude parameterInclude;
+
+ /**
+ * Field name
+ */
+ private QName name;
+
+ /**
+ * Field rules
+ */
+ private PhaseRule rules;
+
+ /**
+ * Field handler
+ */
+ private Handler handler;
+
+ /**
+ * Field className
+ */
+ private String className;
+
+ private ParameterInclude parent;
+
+ /**
+ * Constructor HandlerDescription
+ */
+ public HandlerDescription() {
+ this.parameterInclude = new ParameterIncludeImpl();
+ this.rules = new PhaseRule();
+ }
+
+ /**
+ * Constructor HandlerDescription
+ *
+ * @param name
+ */
+ public HandlerDescription(QName name) {
+ this();
+ this.name = name;
+ }
+
+ /**
+ * @return
+ */
+ public QName getName() {
+ return name;
+ }
+
+ /**
+ * Method getRules
+ *
+ * @return
+ */
+ public PhaseRule getRules() {
+ return rules;
+ }
+
+ /**
+ * Method setRules
+ *
+ * @param rules
+ */
+ public void setRules(PhaseRule rules) {
+ this.rules = rules;
+ }
+
+ /**
+ * @param name
+ */
+ public void setName(QName name) {
+ this.name = name;
+ }
+
+ /**
+ * @param param
+ */
+ public void addParameter(Parameter param) throws AxisFault{
+ if(isParamterLocked(param.getName())){
+ throw new AxisFault("Parmter is locked can not overide: " + param.getName());
+ } else{
+ parameterInclude.addParameter(param);
+ }
+ }
+
+ /**
+ * @param name
+ * @return
+ */
+ public Parameter getParameter(String name) {
+ return parameterInclude.getParameter(name);
+ }
+
+ public ArrayList getParameters() {
+ return parameterInclude.getParameters();
+ }
+
+ //to check whether the paramter is locked at any levle
+ public boolean isParamterLocked(String paramterName) {
+ if(parent != null){
+ if(parent.isParamterLocked(paramterName)){
+ return true;
+ }
+ }
+ return parameterInclude.isParamterLocked(paramterName);
+ }
+
+ /**
+ * @return
+ */
+ public Handler getHandler() {
+ return handler;
+ }
+
+ /**
+ * @param handler
+ */
+ public void setHandler(Handler handler) {
+ this.handler = handler;
+ }
+
+ /**
+ * Method getClassName
+ *
+ * @return
+ */
+ public String getClassName() {
+ return className;
+ }
+
+ /**
+ * Method setClassName
+ *
+ * @param className
+ */
+ public void setClassName(String className) {
+ this.className = className;
+ }
+
+ public ParameterInclude getParent() {
+ return parent;
+ }
+
+ public void setParent(ParameterInclude parent) {
+ this.parent = parent;
+ }
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/HandlerDescription.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/MessageDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/MessageDescription.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/MessageDescription.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/MessageDescription.java Thu Sep 15 11:52:11 2005
@@ -1,28 +1,28 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed 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.axis2.description;
-
-import org.apache.wsdl.MessageReference;
-import org.apache.wsdl.impl.MessageReferenceImpl;
-
-/**
- * @author chathura@opensource.lk
- */
-public class MessageDescription extends MessageReferenceImpl implements
- MessageReference {
-
-}
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.description;
+
+import org.apache.wsdl.MessageReference;
+import org.apache.wsdl.impl.MessageReferenceImpl;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class MessageDescription extends MessageReferenceImpl implements
+ MessageReference {
+
+}
Propchange: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/MessageDescription.java
------------------------------------------------------------------------------
svn:eol-style = native