Class ResourceInjectionMetaData
java.lang.Object
org.jboss.metadata.javaee.support.IdMetaDataImpl
org.jboss.metadata.javaee.support.NamedMetaData
org.jboss.metadata.javaee.spec.ResourceInjectionMetaData
- All Implemented Interfaces:
Serializable, Cloneable, IdMetaData, MappableMetaData
- Direct Known Subclasses:
ResourceInjectionMetaDataWithDescriptionGroup, ResourceInjectionMetaDataWithDescriptions
ResourceInjectionMetaData.
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the ignoreDependency.Get the injectionTargets.Get the jndiName.The JNDI name to be looked up to resolve a resource reference.Get the mappedName.getName()Get the name.An unmanaged runtime jndi name for the resource.booleanGet whether the dependency is ignoredvoidsetIgnoreDependency(EmptyMetaData ignoreDependency) Set the ignoreDependency.voidsetInjectionTargets(Set<ResourceInjectionTargetMetaData> injectionTargets) Set the injectionTargets.voidsetJndiName(String jndiName) Set the jndiName.voidsetLookupName(String lookupName) voidsetMappedName(String mappedName) Set the mappedName.voidsetResolvedJndiName(String resolvedJndiName) Methods inherited from class IdMetaDataImpl
clone, getId, setId
-
Constructor Details
-
ResourceInjectionMetaData
public ResourceInjectionMetaData()Create a new ResourceInjectionMetaData.
-
-
Method Details
-
getName
Description copied from class:NamedMetaDataGet the name.- Overrides:
getNamein classNamedMetaData- Returns:
- the name.
-
getJndiName
-
setJndiName
Set the jndiName.- Parameters:
jndiName- the jndiName.- Throws:
IllegalArgumentException- for a null jndiName
-
getLookupName
The JNDI name to be looked up to resolve a resource reference. -
setLookupName
-
getMappedName
-
setMappedName
Set the mappedName.- Parameters:
mappedName- the mappedName.- Throws:
IllegalArgumentException- for a null mappedName
-
getResolvedJndiName
An unmanaged runtime jndi name for the resource. Used by deployers to propagate resolved resource location.- Returns:
-
setResolvedJndiName
-
getInjectionTargets
Get the injectionTargets.- Returns:
- the injectionTargets.
-
setInjectionTargets
Set the injectionTargets.- Parameters:
injectionTargets- the injectionTargets.- Throws:
IllegalArgumentException- for a null injectionTargets
-
getIgnoreDependency
-
setIgnoreDependency
Set the ignoreDependency.- Parameters:
ignoreDependency- the ignoreDependency.- Throws:
IllegalArgumentException- for a null ignoreDependency
-
isDependencyIgnored
public boolean isDependencyIgnored()Get whether the dependency is ignored- Returns:
- true when the dependency is ignored
-