public interface XResourceBuilder<T extends XResource>
Modifier and Type | Method and Description |
---|---|
XResourceBuilder<T> |
addAttribute(String key,
String value)
Add a resource attributes
|
XCapability |
addCapability(String namespace,
Map<String,Object> atts,
Map<String,String> dirs)
Add a
Capability |
XCapability |
addCapability(String namespace,
String nsvalue)
Add a
Capability |
XIdentityCapability |
addIdentityCapability(MavenCoordinates mavenId)
Add an
XIdentityCapability for the XResource.TYPE_MAVEN type. |
XIdentityCapability |
addIdentityCapability(org.jboss.modules.ModuleIdentifier moduleId)
Add an
XIdentityCapability for the XResource.TYPE_MODULE type. |
XIdentityCapability |
addIdentityCapability(String symbolicName,
org.osgi.framework.Version version)
Add an
XIdentityCapability for the XResource.TYPE_BUNDLE type. |
XRequirement |
addRequirement(String namespace,
org.osgi.framework.Filter filter)
Add a
Requirement |
XRequirement |
addRequirement(String namespace,
Map<String,Object> atts,
Map<String,String> dirs)
Add a
Requirement |
XRequirement |
addRequirement(String namespace,
String nsvalue)
Add a
Requirement |
T |
getResource()
Get the final resource from the builder
|
XResourceBuilder<T> |
loadFrom(org.jboss.modules.Module module)
Create requirements/capabilities from the given module.
|
XResourceBuilder<T> |
loadFrom(org.jboss.osgi.metadata.OSGiMetaData metadata)
Create requirements/capabilities from OSGi metadata
|
XResourceBuilder<T> loadFrom(org.jboss.osgi.metadata.OSGiMetaData metadata) throws ResourceBuilderException
metadata
- The OSGi metadataResourceBuilderException
XResourceBuilder<T> loadFrom(org.jboss.modules.Module module) throws ResourceBuilderException
module
- The moduleResourceBuilderException
XResourceBuilder<T> addAttribute(String key, String value)
XIdentityCapability addIdentityCapability(String symbolicName, org.osgi.framework.Version version)
XIdentityCapability
for the XResource.TYPE_BUNDLE
type.symbolicName
- The bundle symbolic nameversion
- The bundle versionXIdentityCapability addIdentityCapability(org.jboss.modules.ModuleIdentifier moduleId)
XIdentityCapability
for the XResource.TYPE_MODULE
type.moduleId
- The module identifierXIdentityCapability addIdentityCapability(MavenCoordinates mavenId)
XIdentityCapability
for the XResource.TYPE_MAVEN
type.mavenId
- The maven coordinatesXCapability addCapability(String namespace, String nsvalue)
Capability
namespace
- The namespacensvalue
- The namespace valueXCapability addCapability(String namespace, Map<String,Object> atts, Map<String,String> dirs)
Capability
namespace
- The namespaceatts
- The attributesdirs
- The directivesXRequirement addRequirement(String namespace, String nsvalue)
Requirement
namespace
- The namespacensvalue
- The namespace valueXRequirement addRequirement(String namespace, org.osgi.framework.Filter filter)
Requirement
namespace
- The namespacefilter
- The filterXRequirement addRequirement(String namespace, Map<String,Object> atts, Map<String,String> dirs)
Requirement
namespace
- The namespaceatts
- The attributesdirs
- The directivesT getResource()
Copyright © 2013 JBoss by Red Hat. All rights reserved.