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 booleanequals(Object other)StringgetName()The name into which this binding should be made.InjectionSourcegetSource()Get the source for this binding.inthashCode()
-
-
-
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 passednameorsourceis 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
-
-