JBoss Metadata Common 7.0.4.Final-redhat-1

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 getLookupName()
          The JNDI name to be looked up to resolve a resource reference.
 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 setIgnoreDependency(EmptyMetaData ignoreDependency)
          Set the ignoreDependency.
 void setInjectionTargets(Set<ResourceInjectionTargetMetaData> injectionTargets)
          Set the injectionTargets.
 void setJndiName(String jndiName)
          Set the jndiName.
 void setLookupName(String lookupName)
           
 void setMappedName(String mappedName)
          Set the mappedName.
 void setResolvedJndiName(String resolvedJndiName)
           
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaData
equals, getKey, hashCode, setName, toString
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, 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

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

JBoss Metadata Common 7.0.4.Final-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.