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
Representation of a Context element.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInjectionTarget(String injectionTargetName, String jndiName) Adds an injection target to this injectable.booleanReturn the description of this resource.Returns the list of injection targets.Return the JNDI lookup name for this resource.getName()Returns the name of this injectable.Return the NamingResources with which this resource is associated.getProperty(String name) Returns the value of the specified property.getType()Return the name of the resource implementation class.inthashCode()List properties.voidremoveProperty(String name) Remove a configured property.voidsetDescription(String description) Set the description of this resource.voidsetLookupName(String lookupName) Set the JNDI lookup name for this resource.voidSet the name of this resource.voidsetNamingResources(NamingResources resources) Set the NamingResources with which this resource is associated.voidsetProperty(String name, Object value) Set a configured property.voidSet the name of the resource implementation class.
-
Constructor Details
-
ResourceBase
public ResourceBase()Default constructor.
-
-
Method Details
-
getDescription
Return the description of this resource.- Returns:
- The description of this resource
-
setDescription
Set the description of this resource.- Parameters:
description- The description of this resource
-
getName
Description copied from interface:InjectableReturns the name of this injectable.- Specified by:
getNamein interfaceInjectable- Returns:
- the name
-
setName
Set the name of this resource.- Parameters:
name- The name of this resource
-
getType
Return the name of the resource implementation class.- Returns:
- The name of the resource implementation class
-
setType
Set the name of the resource implementation class.- Parameters:
type- The name of the resource implementation class
-
getLookupName
Return the JNDI lookup name for this resource.- Returns:
- The JNDI lookup name
-
setLookupName
Set the JNDI lookup name for this resource.- Parameters:
lookupName- The JNDI lookup name
-
getProperty
-
setProperty
-
removeProperty
Remove a configured property.- Parameters:
name- The property name
-
listProperties
-
addInjectionTarget
Description copied from interface:InjectableAdds an injection target to this injectable.- Specified by:
addInjectionTargetin interfaceInjectable- Parameters:
injectionTargetName- the name of the injection targetjndiName- the JNDI name for the injection
-
getInjectionTargets
Description copied from interface:InjectableReturns the list of injection targets.- Specified by:
getInjectionTargetsin interfaceInjectable- Returns:
- the list of injection targets
-
hashCode
-
equals
-
getNamingResources
Return the NamingResources with which this resource is associated.- Returns:
- The NamingResources with which this resource is associated
-
setNamingResources
Set the NamingResources with which this resource is associated.- Parameters:
resources- The NamingResources with which this resource is associated
-