org.jboss.metadata.javaee.spec
Class ResourceInjectionMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.NamedMetaData
          extended by org.jboss.metadata.javaee.spec.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:
Serialized Form

Constructor Summary
ResourceInjectionMetaData()
          Create a new ResourceInjectionMetaData.
 
Method Summary
 EmptyMetaData getIgnoreDependency()
          Get the ignoreDependency.
 Set<ResourceInjectionTargetMetaData> getInjectionTargets()
          Get the injectionTargets.
 String getJndiName()
          Get the jndiName.
 String getMappedName()
          Get the mappedName.
 String getName()
          Get the name.
 String getResolvedJndiName()
          An unmanaged runtime jndi name for the resource.
 boolean isDependencyIgnored()
          Get whether the dependency is ignored
 void merge(ResourceInjectionMetaData override, ResourceInjectionMetaData original)
          Merge the contents of override with original into this.
 void setIgnoreDependency(EmptyMetaData ignoreDependency)
          Set the ignoreDependency.
 void setInjectionTargets(Set<ResourceInjectionTargetMetaData> injectionTargets)
          Set the injectionTargets.
 void setJndiName(String jndiName)
          Set the jndiName.
 void setMappedName(String mappedName)
          Set the mappedName.
 void setResolvedJndiName(String resolvedJndiName)
           
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaData
equals, getKey, hashCode, merge, setName, toString
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, merge, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceInjectionMetaData

public ResourceInjectionMetaData()
Create a new ResourceInjectionMetaData.

Method Detail

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

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

merge

public void merge(ResourceInjectionMetaData override,
                  ResourceInjectionMetaData original)
Merge the contents of override with original into this.

Parameters:
override - data which overrides original
original - the original data


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.