Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/resource/Resource.java')
-rw-r--r--bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/resource/Resource.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/resource/Resource.java b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/resource/Resource.java
index 56916cb25..3d95628ef 100644
--- a/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/resource/Resource.java
+++ b/bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/resource/Resource.java
@@ -1,6 +1,6 @@
/*
* Copyright (c) OSGi Alliance (2011). All Rights Reserved.
- *
+ *
* Licensed 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
@@ -21,9 +21,9 @@ import java.util.List;
/**
* A resource is the representation of a uniquely identified and typed data.
- *
+ *
* A resources can be wired together via capabilities and requirements.
- *
+ *
* @ThreadSafe
* @version $Id$
*/
@@ -31,26 +31,26 @@ public interface Resource {
/**
* Returns the capabilities declared by this resource.
*
- * @param namespace
- * The name space of the declared capabilities to return or
- * {@code null} to return the declared capabilities from all name
- * spaces.
- * @return A list containing a snapshot of the declared {@link Capability}s,
- * or an empty list if this resource declares no capabilities in the
- * specified name space.
+ * @param namespace The name space of the declared capabilities to return or
+ * {@code null} to return the declared capabilities from all name
+ * spaces.
+ * @return An unmodifiable list containing the declared {@link Capability}s
+ * from the specified name space. The returned list will be empty if
+ * this resource declares no capabilities in the specified name
+ * space.
*/
List<Capability> getCapabilities(String namespace);
/**
* Returns the requirements declared by this bundle resource.
- *
- * @param namespace
- * The name space of the declared requirements to return or
- * {@code null} to return the declared requirements from all name
- * spaces.
- * @return A list containing a snapshot of the declared {@link Requirement}
- * s, or an empty list if this resource declares no requirements in
- * the specified name space.
+ *
+ * @param namespace The name space of the declared requirements to return or
+ * {@code null} to return the declared requirements from all name
+ * spaces.
+ * @return An unmodifiable list containing the declared {@link Requirement}
+ * s from the specified name space. The returned list will be empty
+ * if this resource declares no requirements in the specified name
+ * space.
*/
List<Requirement> getRequirements(String namespace);
}

Back to the top