felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r903585 - in /felix/trunk/scr/src/test/java/org/apache/felix/scr/integration: ./ components/activatesignature/
Date Wed, 27 Jan 2010 09:58:18 GMT
Author: fmeschbe
Date: Wed Jan 27 09:58:17 2010
New Revision: 903585

URL: http://svn.apache.org/viewvc?rev=903585&view=rev
Log:
FELIX-2010 Testcases ensuring various visibility and argument options for the activate method
are respected for DS 1.1 components.

Added:
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ActivateSignatureTest.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/AbstractActivateSignatureTestComponent.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_BundleContext.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_ComponentContext.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_Map.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_BundleContext.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_ComponentContext.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_Map.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_BundleContext.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_ComponentContext.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_Map.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_BundleContext.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_ComponentContext.java
  (with props)
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_Map.java
  (with props)
Modified:
    felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ActivateSignatureTest.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ActivateSignatureTest.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ActivateSignatureTest.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ActivateSignatureTest.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,76 @@
+/*
+ * 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.scr.integration;
+
+
+import junit.framework.TestCase;
+
+import org.apache.felix.scr.Component;
+import org.apache.felix.scr.integration.components.activatesignature.AbstractActivateSignatureTestComponent;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.junit.JUnit4TestRunner;
+
+
+/**
+ * The <code>ActivateSignatureTest</code> tests various DS 1.1 activation
+ * signatures for the default method name
+ */
+@RunWith(JUnit4TestRunner.class)
+public class ActivateSignatureTest extends ComponentTestBase
+{
+
+    static
+    {
+        // use different components
+        descriptorFile = "/integration_test_signature_components.xml";
+
+        // uncomment to enable debugging of this test class
+        // paxRunnerVmOption = DEBUG_VM_OPTION;
+    }
+
+
+    @Test
+    public void test()
+    {
+        // wait for components to fire up in the background....
+        delay();
+
+        final Component[] components = getComponents();
+        TestCase.assertNotNull( components );
+
+        for ( Component component : components )
+        {
+            TestCase.assertTrue( "Expecting component " + component.getName() + " to be enabled",
component
+                .isDefaultEnabled() );
+
+            TestCase.assertEquals( "Expecting component " + component.getName() + " to be
active",
+                Component.STATE_ACTIVE, component.getState() );
+
+            final Object instance = component.getComponentInstance().getInstance();
+            TestCase.assertTrue( "Expecting component " + component.getName()
+                + " to be an AbstractActivateSignatureTestComponent",
+                instance instanceof AbstractActivateSignatureTestComponent );
+
+            final AbstractActivateSignatureTestComponent aastc = ( AbstractActivateSignatureTestComponent
) instance;
+            TestCase.assertEquals( "Expect activate method to be called", component.getName(),
aastc.getMethodCalled() );
+        }
+    }
+
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ActivateSignatureTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ActivateSignatureTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Modified: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java?rev=903585&r1=903584&r2=903585&view=diff
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java
(original)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java
Wed Jan 27 09:58:17 2010
@@ -148,20 +148,28 @@
     }
 
 
-    protected Component findComponentByName( String name )
+    protected Component[] getComponents()
     {
         ScrService scr = ( ScrService ) scrTracker.getService();
         if ( scr != null )
         {
-            Component[] components = scr.getComponents();
-            if ( components != null )
+            return scr.getComponents();
+        }
+
+        return null;
+    }
+
+
+    protected Component findComponentByName( String name )
+    {
+        Component[] components = getComponents();
+        if ( components != null )
+        {
+            for ( Component component : components )
             {
-                for ( Component component : components )
+                if ( name.equals( component.getName() ) )
                 {
-                    if ( name.equals( component.getName() ) )
-                    {
-                        return component;
-                    }
+                    return component;
                 }
             }
         }
@@ -172,26 +180,22 @@
 
     protected Component[] findComponentsByName( String name )
     {
-        ScrService scr = ( ScrService ) scrTracker.getService();
-        if ( scr != null )
+        List<Component> cList = new ArrayList<Component>();
+        Component[] components = getComponents();
+        if ( components != null )
         {
-            List<Component> cList = new ArrayList<Component>();
-            Component[] components = scr.getComponents();
-            if ( components != null )
+            for ( Component component : components )
             {
-                for ( Component component : components )
+                if ( name.equals( component.getName() ) )
                 {
-                    if ( name.equals( component.getName() ) )
-                    {
-                        cList.add( component );
-                    }
+                    cList.add( component );
                 }
             }
+        }
 
-            if ( !cList.isEmpty() )
-            {
-                return cList.toArray( new Component[cList.size()] );
-            }
+        if ( !cList.isEmpty() )
+        {
+            return cList.toArray( new Component[cList.size()] );
         }
 
         return null;
@@ -342,7 +346,8 @@
                 withBnd()
                 .set( Constants.BUNDLE_SYMBOLICNAME, "simplecomponent" )
                 .set( Constants.BUNDLE_VERSION, "0.0.11" )
-                .set( Constants.IMPORT_PACKAGE, "org.apache.felix.scr.integration.components"
)
+                .set( Constants.IMPORT_PACKAGE,
+                    "org.apache.felix.scr.integration.components,org.apache.felix.scr.integration.components.activatesignature"
)
                 .set( "Service-Component", "OSGI-INF/components.xml" )
             )
             .build( TinyBundles.asStream() );

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/AbstractActivateSignatureTestComponent.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/AbstractActivateSignatureTestComponent.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/AbstractActivateSignatureTestComponent.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/AbstractActivateSignatureTestComponent.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,59 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import java.util.Map;
+
+import org.osgi.service.component.ComponentConstants;
+import org.osgi.service.component.ComponentContext;
+
+
+public abstract class AbstractActivateSignatureTestComponent
+{
+
+    private String methodCalled;
+
+
+    public String getMethodCalled()
+    {
+        return methodCalled;
+    }
+
+
+    protected void setMethodCalled( String methodCalled )
+    {
+        this.methodCalled = methodCalled;
+    }
+
+
+    protected void setMethodCalled( ComponentContext context )
+    {
+        final String method = ( String ) context.getProperties().get( ComponentConstants.COMPONENT_NAME
);
+        setMethodCalled( method );
+    }
+
+
+    protected void setMethodCalled( Map<?, ?> context )
+    {
+        final String method = ( String ) context.get( ComponentConstants.COMPONENT_NAME );
+        setMethodCalled( method );
+    }
+
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/AbstractActivateSignatureTestComponent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/AbstractActivateSignatureTestComponent.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_BundleContext.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_BundleContext.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_BundleContext.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_BundleContext.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,33 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import org.osgi.framework.BundleContext;
+
+
+public class Signature_Package_BundleContext extends AbstractActivateSignatureTestComponent
+{
+
+    @SuppressWarnings("unused")
+    void activate( BundleContext context )
+    {
+        setMethodCalled( "package_activate_BundleContext" );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_BundleContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_BundleContext.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_ComponentContext.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_ComponentContext.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_ComponentContext.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_ComponentContext.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,32 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import org.osgi.service.component.ComponentContext;
+
+
+public class Signature_Package_ComponentContext extends AbstractActivateSignatureTestComponent
+{
+
+    void activate( @SuppressWarnings("unused") ComponentContext context )
+    {
+        setMethodCalled( context );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_ComponentContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_ComponentContext.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_Map.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_Map.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_Map.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_Map.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,33 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import java.util.Map;
+
+
+public class Signature_Package_Map extends AbstractActivateSignatureTestComponent
+{
+
+    @SuppressWarnings({ "unchecked" })
+    void activate( Map config )
+    {
+        setMethodCalled( config );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_Map.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Package_Map.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_BundleContext.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_BundleContext.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_BundleContext.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_BundleContext.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,33 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import org.osgi.framework.BundleContext;
+
+
+public class Signature_Private_BundleContext extends AbstractActivateSignatureTestComponent
+{
+
+    @SuppressWarnings("unused")
+    private void activate( BundleContext context )
+    {
+        setMethodCalled( "private_activate_BundleContext" );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_BundleContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_BundleContext.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_ComponentContext.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_ComponentContext.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_ComponentContext.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_ComponentContext.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,33 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import org.osgi.service.component.ComponentContext;
+
+
+public class Signature_Private_ComponentContext extends AbstractActivateSignatureTestComponent
+{
+
+    @SuppressWarnings("unused")
+    private void activate( ComponentContext context )
+    {
+        setMethodCalled( context );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_ComponentContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_ComponentContext.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_Map.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_Map.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_Map.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_Map.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,33 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import java.util.Map;
+
+
+public class Signature_Private_Map extends AbstractActivateSignatureTestComponent
+{
+
+    @SuppressWarnings({ "unchecked", "unused" })
+    private void activate( Map config )
+    {
+        setMethodCalled( config );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_Map.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Private_Map.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_BundleContext.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_BundleContext.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_BundleContext.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_BundleContext.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,33 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import org.osgi.framework.BundleContext;
+
+
+public class Signature_Protected_BundleContext extends AbstractActivateSignatureTestComponent
+{
+
+    @SuppressWarnings("unused")
+    protected void activate( BundleContext context )
+    {
+        setMethodCalled( "protected_activate_BundleContext" );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_BundleContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_BundleContext.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_ComponentContext.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_ComponentContext.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_ComponentContext.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_ComponentContext.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,32 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import org.osgi.service.component.ComponentContext;
+
+
+public class Signature_Protected_ComponentContext extends AbstractActivateSignatureTestComponent
+{
+
+    protected void activate( @SuppressWarnings("unused") ComponentContext context )
+    {
+        setMethodCalled( context );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_ComponentContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_ComponentContext.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_Map.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_Map.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_Map.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_Map.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,33 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import java.util.Map;
+
+
+public class Signature_Protected_Map extends AbstractActivateSignatureTestComponent
+{
+
+    @SuppressWarnings({ "unchecked" })
+    protected void activate( Map config )
+    {
+        setMethodCalled( config );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_Map.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Protected_Map.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_BundleContext.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_BundleContext.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_BundleContext.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_BundleContext.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,33 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import org.osgi.framework.BundleContext;
+
+
+public class Signature_Public_BundleContext extends AbstractActivateSignatureTestComponent
+{
+
+    @SuppressWarnings("unused")
+    public void activate( BundleContext context )
+    {
+        setMethodCalled( "public_activate_BundleContext" );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_BundleContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_BundleContext.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_ComponentContext.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_ComponentContext.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_ComponentContext.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_ComponentContext.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,32 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import org.osgi.service.component.ComponentContext;
+
+
+public class Signature_Public_ComponentContext extends AbstractActivateSignatureTestComponent
+{
+
+    public void activate( @SuppressWarnings("unused") ComponentContext context )
+    {
+        setMethodCalled( context );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_ComponentContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_ComponentContext.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url

Added: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_Map.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_Map.java?rev=903585&view=auto
==============================================================================
--- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_Map.java
(added)
+++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_Map.java
Wed Jan 27 09:58:17 2010
@@ -0,0 +1,33 @@
+/*
+ * 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.scr.integration.components.activatesignature;
+
+
+import java.util.Map;
+
+
+public class Signature_Public_Map extends AbstractActivateSignatureTestComponent
+{
+
+    @SuppressWarnings({ "unchecked" })
+    public void activate( Map config )
+    {
+        setMethodCalled( config );
+    }
+}

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_Map.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_Map.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev Url



Mime
View raw message