Class ResourceInjectionMetaData

All Implemented Interfaces:
Serializable, Cloneable, IdMetaData, MappableMetaData
Direct Known Subclasses:
ResourceInjectionMetaDataWithDescriptionGroup, ResourceInjectionMetaDataWithDescriptions

public abstract class ResourceInjectionMetaData extends NamedMetaData
ResourceInjectionMetaData.
Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
  • Constructor Details

    • ResourceInjectionMetaData

      public ResourceInjectionMetaData()
      Create a new ResourceInjectionMetaData.
  • Method Details

    • getName

      public String getName()
      Description copied from class: NamedMetaData
      Get the name.
      Overrides:
      getName in class NamedMetaData
      Returns:
      the name.
    • getJndiName

      public String getJndiName()
      Get the jndiName.
      Returns:
      the jndiName.
    • setJndiName

      public void setJndiName(String jndiName)
      Set the jndiName.
      Parameters:
      jndiName - the jndiName.
      Throws:
      IllegalArgumentException - for a null jndiName
    • getLookupName

      public String getLookupName()
      The JNDI name to be looked up to resolve a resource reference.
    • setLookupName

      public void setLookupName(String lookupName)
    • getMappedName

      public String getMappedName()
      Get the mappedName.
      Returns:
      the mappedName.
    • setMappedName

      public void setMappedName(String mappedName)
      Set the mappedName.
      Parameters:
      mappedName - the mappedName.
      Throws:
      IllegalArgumentException - for a null mappedName
    • getResolvedJndiName

      public String getResolvedJndiName()
      An unmanaged runtime jndi name for the resource. Used by deployers to propagate resolved resource location.
      Returns:
    • setResolvedJndiName

      public void setResolvedJndiName(String resolvedJndiName)
    • getInjectionTargets

      public Set<ResourceInjectionTargetMetaData> getInjectionTargets()
      Get the injectionTargets.
      Returns:
      the injectionTargets.
    • setInjectionTargets

      public void setInjectionTargets(Set<ResourceInjectionTargetMetaData> injectionTargets)
      Set the injectionTargets.
      Parameters:
      injectionTargets - the injectionTargets.
      Throws:
      IllegalArgumentException - for a null injectionTargets
    • getIgnoreDependency

      public EmptyMetaData getIgnoreDependency()
      Get the ignoreDependency.
      Returns:
      the ignoreDependency.
    • setIgnoreDependency

      public void setIgnoreDependency(EmptyMetaData ignoreDependency)
      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