This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.testing.osgi-mock-1.1.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-osgi-mock.git
commit abe8b215743cded198e6befe2c695d8387c340cd Author: Stefan Seifert <[email protected]> AuthorDate: Fri Nov 14 16:40:48 2014 +0000 fix some javadoc copy&paste errors and formatting git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/osgi-mock@1639694 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/sling/testing/mock/osgi/MockOsgi.java | 51 ++++++++-------------- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/src/main/java/org/apache/sling/testing/mock/osgi/MockOsgi.java b/src/main/java/org/apache/sling/testing/mock/osgi/MockOsgi.java index fd65fe1..bffb7b3 100644 --- a/src/main/java/org/apache/sling/testing/mock/osgi/MockOsgi.java +++ b/src/main/java/org/apache/sling/testing/mock/osgi/MockOsgi.java @@ -128,12 +128,10 @@ public final class MockOsgi { } /** - * Simulate activation of service instance. Invokes the @Activate annotated - * method. + * Simulate activation of service instance. Invokes the @Activate annotated method. * @param target Service instance. * @param properties Properties - * @return true if activation method was called. False if such a method did - * not exist. + * @return true if activation method was called. False if it failed. */ public static boolean activate(Object target, Dictionary<String, Object> properties) { ComponentContext componentContext = newComponentContext(properties); @@ -141,12 +139,10 @@ public final class MockOsgi { } /** - * Simulate activation of service instance. Invokes the @Activate annotated - * method. + * Simulate activation of service instance. Invokes the @Activate annotated method. * @param target Service instance. * @param properties Properties - * @return true if activation method was called. False if such a method did - * not exist. + * @return true if activation method was called. False if it failed. */ public static boolean activate(Object target, Map<String, Object> properties) { return activate(target, toDictionary(properties)); @@ -158,8 +154,7 @@ public final class MockOsgi { * @param target Service instance. * @param bundleContext Bundle context * @param properties Properties - * @return true if activation method was called. False if such a method did - * not exist. + * @return true if activation method was called. False if it failed. */ public static boolean activate(Object target, BundleContext bundleContext, Dictionary<String, Object> properties) { ComponentContext componentContext = newComponentContext(bundleContext, properties); @@ -167,24 +162,20 @@ public final class MockOsgi { } /** - * Simulate activation of service instance. Invokes the @Activate annotated - * method. + * Simulate activation of service instance. Invokes the @Activate annotated method. * @param target Service instance. * @param bundleContext Bundle context * @param properties Properties - * @return true if activation method was called. False if such a method did - * not exist. + * @return true if activation method was called. False if it failed. */ public static boolean activate(Object target, BundleContext bundleContext, Map<String, Object> properties) { return activate(target, bundleContext, toDictionary(properties)); } /** - * Simulate deactivation of service instance. Invokes the @Activate - * annotated method. + * Simulate deactivation of service instance. Invokes the @Deactivate annotated method. * @param target Service instance. - * @return true if deactivation method was called. False if such a method - * did not exist. + * @return true if deactivation method was called. False if it failed. */ public static boolean deactivate(Object target) { ComponentContext componentContext = newComponentContext(); @@ -192,12 +183,10 @@ public final class MockOsgi { } /** - * Simulate deactivation of service instance. Invokes the @Activate - * annotated method. + * Simulate deactivation of service instance. Invokes the @Deactivate annotated method. * @param target Service instance. * @param properties Properties - * @return true if deactivation method was called. False if such a method - * did not exist. + * @return true if deactivation method was called. False if it failed. */ public static boolean deactivate(Object target, Dictionary<String, Object> properties) { ComponentContext componentContext = newComponentContext(properties); @@ -205,25 +194,21 @@ public final class MockOsgi { } /** - * Simulate deactivation of service instance. Invokes the @Activate - * annotated method. + * Simulate deactivation of service instance. Invokes the @Deactivate annotated method. * @param target Service instance. * @param properties Properties - * @return true if deactivation method was called. False if such a method - * did not exist. + * @return true if deactivation method was called. False if it failed. */ public static boolean deactivate(Object target, Map<String, Object> properties) { return deactivate(target, toDictionary(properties)); } /** - * Simulate deactivation of service instance. Invokes the @Activate - * annotated method. + * Simulate deactivation of service instance. Invokes the @Deactivate annotated method. * @param target Service instance. * @param bundleContext Bundle context * @param properties Properties - * @return true if deactivation method was called. False if such a method - * did not exist. + * @return true if deactivation method was called. False if it failed. */ public static boolean deactivate(Object target, BundleContext bundleContext, Dictionary<String, Object> properties) { ComponentContext componentContext = newComponentContext(bundleContext, properties); @@ -231,13 +216,11 @@ public final class MockOsgi { } /** - * Simulate activation of service instance. Invokes the @Activate annotated - * method. + * Simulate activation of service instance. Invokes the @Deactivate annotated method. * @param target Service instance. * @param bundleContext Bundle context * @param properties Properties - * @return true if activation method was called. False if such a method did - * not exist. + * @return true if activation method was called. False if it failed. */ public static boolean deactivate(Object target, BundleContext bundleContext, Map<String, Object> properties) { return deactivate(target, bundleContext, toDictionary(properties)); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
