Class ResourceBase
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.ResourceBase
-
- All Implemented Interfaces:
Serializable,Injectable
- Direct Known Subclasses:
ContextEjb,ContextEnvironment,ContextHandler,ContextLocalEjb,ContextResource,ContextResourceEnvRef,ContextResourceLink,ContextService,MessageDestination,MessageDestinationRef
public class ResourceBase extends Object implements Serializable, Injectable
Representation of an Context element- Author:
- Peter Rossbach (pero@apache.org)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInjectionTarget(String injectionTargetName, String jndiName)booleanequals(Object obj)StringgetDescription()List<InjectionTarget>getInjectionTargets()StringgetLookupName()StringgetName()NamingResourcesgetNamingResources()ObjectgetProperty(String name)StringgetType()inthashCode()Iterator<String>listProperties()List properties.voidremoveProperty(String name)Remove a configured property.voidsetDescription(String description)voidsetLookupName(String lookupName)voidsetName(String name)voidsetNamingResources(NamingResources resources)voidsetProperty(String name, Object value)Set a configured property.voidsetType(String type)
-
-
-
Method Detail
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getName
public String getName()
- Specified by:
getNamein interfaceInjectable
-
setName
public void setName(String name)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getLookupName
public String getLookupName()
-
setLookupName
public void setLookupName(String lookupName)
-
getProperty
public Object getProperty(String name)
- Parameters:
name- The property name- Returns:
- a configured property.
-
setProperty
public void setProperty(String name, Object value)
Set a configured property.- Parameters:
name- The property namevalue- The property value
-
removeProperty
public void removeProperty(String name)
Remove a configured property.- Parameters:
name- The property name
-
listProperties
public Iterator<String> listProperties()
List properties.- Returns:
- the property names iterator
-
addInjectionTarget
public void addInjectionTarget(String injectionTargetName, String jndiName)
- Specified by:
addInjectionTargetin interfaceInjectable
-
getInjectionTargets
public List<InjectionTarget> getInjectionTargets()
- Specified by:
getInjectionTargetsin interfaceInjectable
-
getNamingResources
public NamingResources getNamingResources()
-
setNamingResources
public void setNamingResources(NamingResources resources)
-
-