org.apache.aries.application.modelling
Interface Consumer

All Known Subinterfaces:
ImportedBundle, ImportedPackage, ImportedService

public interface Consumer


Method Summary
 String getAttributeFilter()
          This is not the same as the filter which you might get, say, by parsing a blueprint reference.
 ResourceType getType()
          Return the resource type
 boolean isMultiple()
          Whether the resources consumed can be multiple.
 boolean isOptional()
          Whether the resource consumed can be optional.
 boolean isSatisfied(Provider capability)
          Whether the provider object satisfies the consume criteria.
 

Method Detail

getType

ResourceType getType()
Return the resource type

Returns:
the resource type, such as BUNDLE, PACKAGE, SERVICE, OTHER

getAttributeFilter

String getAttributeFilter()
This is not the same as the filter which you might get, say, by parsing a blueprint reference. It is more specific - and usable at runtime.

Returns:
String filter matching every property required by this consumer

isMultiple

boolean isMultiple()
Whether the resources consumed can be multiple.

Returns:
true if multiple resources can be consumed.

isOptional

boolean isOptional()
Whether the resource consumed can be optional.

Returns:
true if optional.

isSatisfied

boolean isSatisfied(Provider capability)
Whether the provider object satisfies the consume criteria.

Parameters:
capability - The provider capability
Returns:
true if the capability satisfies the consuming criteria.


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.