servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r727905 - in /servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api: ComponentUtil.java Container.java
Date Fri, 19 Dec 2008 03:13:28 GMT
Author: ffang
Date: Thu Dec 18 19:13:27 2008
New Revision: 727905

URL: http://svn.apache.org/viewvc?rev=727905&view=rev
Log:
[SM-1741]refactor utils to let component get rid of provided dependency of servicemix-core


Added:
    servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/ComponentUtil.java
  (with props)
Modified:
    servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/Container.java

Added: servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/ComponentUtil.java
URL: http://svn.apache.org/viewvc/servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/ComponentUtil.java?rev=727905&view=auto
==============================================================================
--- servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/ComponentUtil.java
(added)
+++ servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/ComponentUtil.java
Thu Dec 18 19:13:27 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.servicemix.jbi.api;
+import javax.jbi.component.Component;
+
+/**
+ * Represents the ServiceMix JBI container
+ */
+public interface ComponentUtil {
+    
+    /**
+     * Get a {@link ClientFactory} for building a client to access this container
+     * 
+     * @return the factory
+     */
+    Component getComponent();
+}

Propchange: servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/ComponentUtil.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/ComponentUtil.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/Container.java
URL: http://svn.apache.org/viewvc/servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/Container.java?rev=727905&r1=727904&r2=727905&view=diff
==============================================================================
--- servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/Container.java (original)
+++ servicemix/utils/trunk/src/main/java/org/apache/servicemix/jbi/api/Container.java Thu
Dec 18 19:13:27 2008
@@ -27,5 +27,5 @@
      * @return the factory
      */
     ClientFactory getClientFactory();
-
+    ComponentUtil getComponentByName(String name);
 }



Mime
View raw message