public class ConsumerHeaderProcessor
extends java.lang.Object
Constructor and Description |
---|
ConsumerHeaderProcessor() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<WeavingData> |
processHeader(java.lang.String consumerHeaderName,
java.lang.String consumerHeader)
Parses headers of the following syntax:
org.acme.MyClass#myMethod - apply the weaving to all overloads of myMethod()
in MyClass
org.acme.MyClass#myMethod(java.lang.String, java.util.List) - apply the weaving only
to the myMethod(String, List) overload in MyClass
org.acme.MyClass#myMethod() - apply the weaving only to the noarg overload of
myMethod()
true - equivalent to java.util.ServiceLoader#load(java.lang.Class)
Additionally, it registers the consumer's constraints with the consumer registry in the activator, if the
consumer is only constrained to a certain set of bundles.
|
public static java.util.Set<WeavingData> processHeader(java.lang.String consumerHeaderName, java.lang.String consumerHeader) throws java.lang.Exception
The following attributes are supported:
consumerHeaderName
- the name of the header (either Require-Capability or SPI-Consumer)consumerHeader
- the SPI-Consumer header.WeavingData
class.java.lang.Exception
- when a header cannot be parsed.Copyright © 2009-2019 The Apache Software Foundation. All Rights Reserved.