Package org.jboss.as.ee.component
Class BindingConfiguration
- java.lang.Object
-
- org.jboss.as.ee.component.BindingConfiguration
-
public final class BindingConfiguration extends Object
A binding into JNDI. This class contains the mechanism to construct the binding service. In particular it represents only the description of the binding; it does not represent injection or any other parameters of a JNDI resource.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description BindingConfiguration(String name, InjectionSource source)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getName()
The name into which this binding should be made.InjectionSource
getSource()
Get the source for this binding.int
hashCode()
-
-
-
Constructor Detail
-
BindingConfiguration
public BindingConfiguration(String name, InjectionSource source)
Construct a new instance.- Parameters:
name
- the binding namesource
- The source which will be used to resolve a value to be bound in the JNDI- Throws:
IllegalArgumentException
- If either of the passedname
orsource
is null
-
-
Method Detail
-
getName
public String getName()
The name into which this binding should be made. The meaning of relative names depends on where this binding description is used. For component bindings, relative names are generally relative tojava:comp/env
.- Returns:
- the name into which this binding should be made
-
getSource
public InjectionSource getSource()
Get the source for this binding.- Returns:
- the binding's injection source
-
-