You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/12/02 10:25:32 UTC
svn commit: r481526 - in
/incubator/servicemix/trunk/common/servicemix-common/src:
main/java/org/apache/servicemix/common/xbean/BaseXBeanDeployer.java
test/java/org/apache/servicemix/common/EPRTest.java
Author: gnodet
Date: Sat Dec 2 01:25:32 2006
New Revision: 481526
URL: http://svn.apache.org/viewvc?view=rev&rev=481526
Log:
Add copyright and ensure deployed endpoint inherits ones of the allowed classes
Modified:
incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/BaseXBeanDeployer.java
incubator/servicemix/trunk/common/servicemix-common/src/test/java/org/apache/servicemix/common/EPRTest.java
Modified: incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/BaseXBeanDeployer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/BaseXBeanDeployer.java?view=diff&rev=481526&r1=481525&r2=481526
==============================================================================
--- incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/BaseXBeanDeployer.java (original)
+++ incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/BaseXBeanDeployer.java Sat Dec 2 01:25:32 2006
@@ -16,6 +16,8 @@
*/
package org.apache.servicemix.common.xbean;
+import java.util.Arrays;
+
import org.apache.servicemix.common.Endpoint;
import org.apache.servicemix.common.ServiceMixComponent;
@@ -51,8 +53,10 @@
for (int i = 0; i < endpointClasses.length; i++) {
if (endpointClasses[i].isInstance(endpoint)) {
super.validate(endpoint);
+ return;
}
}
+ throw new DeploymentException("Endpoint is not of type: " + Arrays.asList(endpointClasses) + " but is of type: " + endpoint.getClass());
}
}
Modified: incubator/servicemix/trunk/common/servicemix-common/src/test/java/org/apache/servicemix/common/EPRTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/common/servicemix-common/src/test/java/org/apache/servicemix/common/EPRTest.java?view=diff&rev=481526&r1=481525&r2=481526
==============================================================================
--- incubator/servicemix/trunk/common/servicemix-common/src/test/java/org/apache/servicemix/common/EPRTest.java (original)
+++ incubator/servicemix/trunk/common/servicemix-common/src/test/java/org/apache/servicemix/common/EPRTest.java Sat Dec 2 01:25:32 2006
@@ -1,3 +1,19 @@
+/*
+ * 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.servicemix.common;
import java.util.List;