use of org.glassfish.resourcebase.resources.api.ResourceInfo in project Payara by payara.
the class ResourceUtil method getGenericResourceInfo.
/**
* given a resource config bean, returns the resource name / jndi-name
* @param resource
* @return resource name / jndi-name
*/
public static ResourceInfo getGenericResourceInfo(Resource resource) {
ResourceInfo resourceInfo = null;
String resourceName = resource.getIdentity();
resourceInfo = getGenericResourceInfo(resource, resourceName);
return resourceInfo;
}
Aggregations