public class NamespaceBindings extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.as.server.deployment.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(org.jboss.as.server.deployment.DeploymentUnit context)
Get the namespace bindings for a deployment context.
|
public static final org.jboss.as.server.deployment.AttachmentKey<NamespaceBindings> ATTACHMENT_KEY
public static NamespaceBindings getNamespaceBindings(org.jboss.as.server.deployment.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 © 2015 JBoss by Red Hat. All rights reserved.