public interface ResourceResolver
| Modifier and Type | Method and Description |
|---|---|
List<ApplicationResource> |
getApplicationResources()
Gets the application resources.
|
List<ApplicationResource> |
getApplicationResources(org.apache.catalina.Context context,
ContainerWrapperBean containerWrapper)
Gets the application resources.
|
MBeanServer |
getMBeanServer()
Method that gets
MBeanServer instance that is "default" for the current environment. |
DataSource |
lookupDataSource(org.apache.catalina.Context context,
String resourceName,
ContainerWrapperBean containerWrapper)
Lookup data source.
|
boolean |
resetResource(org.apache.catalina.Context context,
String resourceName,
ContainerWrapperBean containerWrapper)
Reset resource.
|
boolean |
supportsDataSourceLookup()
Indicates whether this servlet container exposes datasources via
JNDI. |
boolean |
supportsGlobalResources()
Most servlet containers support global resources, but for those that do not, this returns
false.
|
boolean |
supportsPrivateResources()
Standalone Tomcat supports declaration of application-local resources.
|
boolean supportsPrivateResources()
getApplicationResources(Context, ContainerWrapperBean)boolean supportsGlobalResources()
getApplicationResources()boolean supportsDataSourceLookup()
JNDI.List<ApplicationResource> getApplicationResources() throws NamingException
NamingException - the naming exceptionList<ApplicationResource> getApplicationResources(org.apache.catalina.Context context, ContainerWrapperBean containerWrapper) throws NamingException
context - the contextcontainerWrapper - the container wrapperNamingException - the naming exceptionboolean resetResource(org.apache.catalina.Context context,
String resourceName,
ContainerWrapperBean containerWrapper)
throws NamingException
context - the contextresourceName - the resource namecontainerWrapper - the container wrapperNamingException - the naming exceptionDataSource lookupDataSource(org.apache.catalina.Context context, String resourceName, ContainerWrapperBean containerWrapper) throws NamingException
context - the contextresourceName - the resource namecontainerWrapper - the container wrapperNamingException - the naming exceptionMBeanServer getMBeanServer()
MBeanServer instance that is "default" for the current environment. It
is preferably to use this method to locate the "default" MBeanServer implementation.MBeanServer instance for the current environmentCopyright © 2009–2020 psi-probe. All rights reserved.