public class Elements extends Object
Constructor and Description |
---|
Elements() |
Modifier and Type | Method and Description |
---|---|
static org.apache.felix.ipojo.metadata.Element |
buildElement(String binding)
Build an
Element using the provided binding information. |
static org.apache.felix.ipojo.metadata.Element |
buildElement(String namespace,
String name)
Build an
Element using the provided namespace and local name. |
static org.apache.felix.ipojo.metadata.Element |
buildElement(org.objectweb.asm.Type type)
Build the
Element object from the given descriptor. |
static org.apache.felix.ipojo.metadata.Element |
getPropertiesElement(ComponentWorkbench workbench)
Return the Element named properties, creates one if missing.
|
public static org.apache.felix.ipojo.metadata.Element buildElement(org.objectweb.asm.Type type)
Element
object from the given descriptor.
It splits the annotation's classname in 2 parts (up to the last '.')
first part (package's name) becomes the Element's namespace, and second
part (class simple name) becomes the Element's name.type
- annotation descriptorpublic static org.apache.felix.ipojo.metadata.Element buildElement(String namespace, String name)
Element
using the provided namespace and local name.public static org.apache.felix.ipojo.metadata.Element buildElement(String binding)
Element
using the provided binding information.
Expected format is [namespace:]name (eg: com.acme:foo or foo if namespace
by default -org.apache.felix.ipojo- has to be used).
Notice that the ':' character usage in namespace or name part may lead to unexpected results.
In that case, the @HandlerBinding(namespace = "urn:my:namespace", value = "foo:handler") usage is preferred.binding
- the condensed element namepublic static org.apache.felix.ipojo.metadata.Element getPropertiesElement(ComponentWorkbench workbench)
workbench
- source for searchCopyright © 2006–2023 The Apache Software Foundation. All rights reserved.