You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nuvem-commits@incubator.apache.org by jo...@apache.org on 2011/05/02 23:33:53 UTC

svn commit: r1098858 - /incubator/nuvem/trunk/store-assets/src/main/java/services/XMPPShipmentObserver.java

Author: johnp
Date: Mon May  2 23:33:52 2011
New Revision: 1098858

URL: http://svn.apache.org/viewvc?rev=1098858&view=rev
Log:
Store App modified to reflect the new packate structure

Modified:
    incubator/nuvem/trunk/store-assets/src/main/java/services/XMPPShipmentObserver.java

Modified: incubator/nuvem/trunk/store-assets/src/main/java/services/XMPPShipmentObserver.java
URL: http://svn.apache.org/viewvc/incubator/nuvem/trunk/store-assets/src/main/java/services/XMPPShipmentObserver.java?rev=1098858&r1=1098857&r2=1098858&view=diff
==============================================================================
--- incubator/nuvem/trunk/store-assets/src/main/java/services/XMPPShipmentObserver.java (original)
+++ incubator/nuvem/trunk/store-assets/src/main/java/services/XMPPShipmentObserver.java Mon May  2 23:33:52 2011
@@ -1,48 +1,48 @@
-/*
- * 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 services;
-
-import org.apache.nuvem.cloud.xmpp.api.JID;
-import org.apache.nuvem.cloud.xmpp.api.MessageBuilder;
-import org.apache.nuvem.cloud.xmpp.api.Status;
-import org.apache.nuvem.cloud.xmpp.api.XMPPEndPoint;
-import org.oasisopen.sca.annotation.Reference;
-import org.oasisopen.sca.annotation.Scope;
-
-@Scope("COMPOSITE")
-public class XMPPShipmentObserver implements ShipmentObserver {
-
-	@Reference
-	private XMPPEndPoint endpoint;
-
-	public void onStatusUpdate(Shipment shipment, Event event) {
-		JID jid = shipment.getJidToUpdate();
-		System.out.println("inviting user of jid : " + jid.asString());
-		Status status = endpoint.invite(jid);
-		System.out.println("status of invite:" + status.hasErrors());
-		if (!status.hasErrors()) {
-			endpoint.sendMessage(new MessageBuilder().toRecipient(
-					shipment.getJidToUpdate().asString()).containing(
-					event.toString()).build());
-		}
-	}
-
-}
+/*
+ * 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 services;
+
+import org.apache.nuvem.cloud.xmpp.api.JID;
+import org.apache.nuvem.cloud.xmpp.api.Status;
+import org.apache.nuvem.cloud.xmpp.api.XMPPEndPoint;
+import org.apache.nuvem.cloud.xmpp.api.message.MessageBuilder;
+import org.oasisopen.sca.annotation.Reference;
+import org.oasisopen.sca.annotation.Scope;
+
+@Scope("COMPOSITE")
+public class XMPPShipmentObserver implements ShipmentObserver {
+
+	@Reference
+	private XMPPEndPoint endpoint;
+
+	public void onStatusUpdate(Shipment shipment, Event event) {
+		JID jid = shipment.getJidToUpdate();
+		System.out.println("inviting user of jid : " + jid.asString());
+		Status status = endpoint.invite(jid.asString());
+		System.out.println("status of invite:" + status.hasErrors());
+		if (!status.hasErrors()) {
+			endpoint.sendMessage(new MessageBuilder().toRecipient(
+					shipment.getJidToUpdate().asString()).containing(
+					event.toString()).build());
+		}
+	}
+
+}