Return-Path: Delivered-To: apmail-felix-commits-archive@www.apache.org Received: (qmail 58840 invoked from network); 31 Jul 2008 17:34:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jul 2008 17:34:18 -0000 Received: (qmail 14998 invoked by uid 500); 31 Jul 2008 17:34:17 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 14973 invoked by uid 500); 31 Jul 2008 17:34:17 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 14964 invoked by uid 99); 31 Jul 2008 17:34:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2008 10:34:17 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2008 17:33:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 679A623889FC; Thu, 31 Jul 2008 10:33:56 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r681423 [2/2] - in /felix/sandbox/clement/ipojo-tutorials/advanced.tutorial: ./ felix/ felix/bin/ felix/bundle/ felix/conf/ felix/ipojo/ tasks/ vendor.buns-and-wieners/ vendor.buns-and-wieners/src/ vendor.buns-and-wieners/src/org/ vendor.bu... Date: Thu, 31 Jul 2008 17:33:52 -0000 To: commits@felix.apache.org From: clement@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080731173356.679A623889FC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/src/org/apache/felix/ipojo/example/vendor/hotdog/HotDog.java URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/src/org/apache/felix/ipojo/example/vendor/hotdog/HotDog.java?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/src/org/apache/felix/ipojo/example/vendor/hotdog/HotDog.java (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/src/org/apache/felix/ipojo/example/vendor/hotdog/HotDog.java Thu Jul 31 10:33:48 2008 @@ -0,0 +1,46 @@ +/* + * 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.felix.ipojo.example.vendor.hotdog; + +import org.apache.felix.ipojo.example.vendor.service.Product; + +/** + * A hotdog implementation. + */ +public class HotDog implements Product { + + /** + * Returns the store location. + * @return 'Fenway Park' + * @see org.apache.felix.ipojo.example.vendor.service.Product#getProductOrigin() + */ + public String getProductOrigin() { + return "Fenway Park"; + } + + /** + * Returns the product type + * @return 'hotdog' + * @see org.apache.felix.ipojo.example.vendor.service.Product#getProductType() + */ + public String getProductType() { + return "Hotdog"; + } + +} Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/src/org/apache/felix/ipojo/example/vendor/hotdog/HotDogVendor.java URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/src/org/apache/felix/ipojo/example/vendor/hotdog/HotDogVendor.java?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/src/org/apache/felix/ipojo/example/vendor/hotdog/HotDogVendor.java (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/src/org/apache/felix/ipojo/example/vendor/hotdog/HotDogVendor.java Thu Jul 31 10:33:48 2008 @@ -0,0 +1,55 @@ +/* + * 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.felix.ipojo.example.vendor.hotdog; + +import org.apache.felix.ipojo.example.vendor.service.Product; +import org.apache.felix.ipojo.example.vendor.service.Vendor; +import org.apache.felix.ipojo.example.vendor.service.ingredient.Bun; +import org.apache.felix.ipojo.example.vendor.service.ingredient.Wiener; + +/** + * An hotdog vendor implementation. + * To sell hotdog, the vendor requires both a WienerService and a BunService. + */ +public class HotDogVendor implements Vendor { + + /** + * Bun provider (required service). + */ + private Bun bunProvider; + + /** + * Wiener provider (required service). + */ + private Wiener wienerProvider; + + /** + * Sell method. + * To provide an hotdog, the vendor consume a bun and a wiener. + * This method is synchronized to avoid serving to client at the same time. + * @return a hotdog. + * @see org.apache.felix.ipojo.example.vendor.service.Vendor#sell() + */ + public synchronized Product sell() { + bunProvider.getBun(); + wienerProvider.getWiener(); + return new HotDog(); + } + +} Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/vendor.hotdog.bnd URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/vendor.hotdog.bnd?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/vendor.hotdog.bnd (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.hotdog/vendor.hotdog.bnd Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +Private-Package: org.apache.felix.ipojo.example.vendor.hotdog Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/build.xml URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/build.xml?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/build.xml (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/build.xml Thu Jul 31 10:33:48 2008 @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/metadata.xml URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/metadata.xml?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/metadata.xml (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/metadata.xml Thu Jul 31 10:33:48 2008 @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/popcorn/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/popcorn/PopCorn.java URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/popcorn/PopCorn.java?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/popcorn/PopCorn.java (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/popcorn/PopCorn.java Thu Jul 31 10:33:48 2008 @@ -0,0 +1,51 @@ +/* + * 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.felix.ipojo.example.vendor.popcorn; + +import org.apache.felix.ipojo.example.vendor.service.Product; + +/** + * A popcorn implementation. + */ +public class PopCorn implements Product { + + /** + * Special product to describe that there is no more pop corn. + */ + public static final Product NO_MORE_POPCORN = new Product() { + public String getProductOrigin() { + return "D & P"; + } + + public String getProductType() { + return "no more pop corn"; + } + }; + + + + public String getProductOrigin() { + return "D & P"; + } + + public String getProductType() { + return "popcorn"; + } + +} Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/popcorn/PopCornVendor.java URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/popcorn/PopCornVendor.java?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/popcorn/PopCornVendor.java (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/src/org/apache/felix/ipojo/example/vendor/popcorn/PopCornVendor.java Thu Jul 31 10:33:48 2008 @@ -0,0 +1,73 @@ +/* + * 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.felix.ipojo.example.vendor.popcorn; + +import org.apache.felix.ipojo.example.vendor.service.Product; +import org.apache.felix.ipojo.example.vendor.service.Vendor; + +/** + * A popcorn vendor implementation. + * To sell popcorn, the vendor use corn. This implementation manage its own corn stock. + */ +public class PopCornVendor implements Vendor { + + /** + * The corn stock. + */ + private int m_corn_stock; + + /** + * Lifecycle controller. + * If set to false, the instance becomes invalid. + */ + private boolean m_can_sell = true; + + /** + * The sell method. + * To provide popcorn, the vendor needs to decrease its corn stock level. + * This method is synchronized to avoid to client being serve at the same time. + * @return + * @see org.apache.felix.ipojo.example.vendor.service.Vendor#sell() + */ + public synchronized Product sell() { + m_corn_stock--; + if (m_corn_stock == 0 && m_can_sell) { // Last pop corn + m_can_sell = false; + System.out.println("Stop selling popcorn ... Run out of stock"); + return new PopCorn(); + } else if (m_corn_stock > 0) { // Normal case + return new PopCorn(); + } else { // Cannot serve. + return PopCorn.NO_MORE_POPCORN; + } + } + + /** + * A transporter refills the stock of corn. + * This method is synchronized to avoid to client being served during the update. + * @param newStock : the stock of corn to add to the current stock. + */ + public synchronized void refillStock(int newStock) { + m_corn_stock += newStock; + System.out.println("Refill the stock : " + m_corn_stock); + if (m_corn_stock > 0) { + m_can_sell = true; + } + } +} Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/vendor.popcorn.bnd URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/vendor.popcorn.bnd?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/vendor.popcorn.bnd (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.popcorn/vendor.popcorn.bnd Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +Private-Package: org.apache.felix.ipojo.example.vendor.popcorn Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/build.xml URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/build.xml?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/build.xml (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/build.xml Thu Jul 31 10:33:48 2008 @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/Product.java URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/Product.java?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/Product.java (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/Product.java Thu Jul 31 10:33:48 2008 @@ -0,0 +1,39 @@ +/* + * 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.felix.ipojo.example.vendor.service; + +/** + * A sold product. + * Products are sold by Vendors. + */ +public interface Product { + + /** + * Gets the product type. + * @return the product type. + */ + String getProductType(); + + /** + * Gets the product origin. + * @return the product store location.? + */ + String getProductOrigin(); + +} Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/Vendor.java URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/Vendor.java?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/Vendor.java (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/Vendor.java Thu Jul 31 10:33:48 2008 @@ -0,0 +1,30 @@ +/* + * 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.felix.ipojo.example.vendor.service; + +/** + * Vendor service interface. + */ +public interface Vendor { + /** + * Sells a product. + * @return the sold product. + */ + public Product sell(); +} Propchange: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ingredient/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +dist output* Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ingredient/Bun.java URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ingredient/Bun.java?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ingredient/Bun.java (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ingredient/Bun.java Thu Jul 31 10:33:48 2008 @@ -0,0 +1,31 @@ +/* + * 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.felix.ipojo.example.vendor.service.ingredient; + +/** + * A very simple service interface to get buns. + */ +public interface Bun { + + /** + * Gets a bun + */ + void getBun(); + +} Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ingredient/Wiener.java URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ingredient/Wiener.java?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ingredient/Wiener.java (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/src/org/apache/felix/ipojo/example/vendor/service/ingredient/Wiener.java Thu Jul 31 10:33:48 2008 @@ -0,0 +1,31 @@ +/* + * 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.felix.ipojo.example.vendor.service.ingredient; + +/** + * A very simple service interface to get wieners. + */ +public interface Wiener { + + /** + * Gets a wiener. + */ + void getWiener(); + +} Added: felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/vendor.services.bnd URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/vendor.services.bnd?rev=681423&view=auto ============================================================================== --- felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/vendor.services.bnd (added) +++ felix/sandbox/clement/ipojo-tutorials/advanced.tutorial/vendor.services/vendor.services.bnd Thu Jul 31 10:33:48 2008 @@ -0,0 +1 @@ +Export-Package: org.apache.felix.ipojo.example.vendor.service, org.apache.felix.ipojo.example.vendor.service.ingredient