public class NamespaceBindings extends Object
Modifier and Type | Field and Description |
---|---|
static AttachmentKey<NamespaceBindings> |
ATTACHMENT_KEY |
Constructor and Description |
---|
NamespaceBindings() |
Modifier and Type | Method and Description |
---|---|
boolean |
addBinding(JndiName name,
Object value)
Add a new namespace binding for this deployment.
|
static NamespaceBindings |
getNamespaceBindings(DeploymentUnit context)
Get the namespace bindings for a deployment context.
|
public static final AttachmentKey<NamespaceBindings> ATTACHMENT_KEY
public static NamespaceBindings getNamespaceBindings(DeploymentUnit context)
context
- The deployment contextpublic boolean addBinding(JndiName name, Object value) throws DuplicateBindingException
name
- The JNDI name of the bindingvalue
- The value of the bindingDuplicateBindingException
- If this binding already exists and is not compatible with the existing binding.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.