public static String findResourceId(final Collection<String> resourceIds, final String inId) { if (inId == null) { return null; } final String resourceId = normalizeResourceId(inId); // check for existing resource with specified resourceId for (final String id : resourceIds) { if (id.equalsIgnoreCase(resourceId)) { return id; } } // check for existing resource with shortName final String shortName = toShortName(resourceId); for (final String id : resourceIds) { if (id.equalsIgnoreCase(shortName)) { return id; } } if (resourceId.startsWith("osgi:")) { return resourceId; } return null; }
private String findResourceId(String resourceId, String type, Properties required, AppResources appResources) { if (resourceId == null) return null; resourceId = normalizeResourceId(resourceId); // check for existing resource with specified resourceId List<String> resourceIds = getResourceIds(appResources, type, required); for (String id : resourceIds) { if (id.equalsIgnoreCase(resourceId)) return id; } // check for existing resource with shortName String shortName = toShortName(resourceId); for (String id : resourceIds) { if (id.equalsIgnoreCase(shortName)) return id; } return null; }
public static String findResourceId(final Collection<String> resourceIds, final String inId) { if (inId == null) { return null; } final String resourceId = normalizeResourceId(inId); // check for existing resource with specified resourceId for (final String id : resourceIds) { if (id.equalsIgnoreCase(resourceId)) { return id; } } // check for existing resource with shortName final String shortName = toShortName(resourceId); for (final String id : resourceIds) { if (id.equalsIgnoreCase(shortName)) { return id; } } if (resourceId.startsWith("osgi:")) { return resourceId; } return null; }
private String findResourceProviderId(String resourceId) throws OpenEJBException { if (resourceId == null) return null; if (hasServiceProvider(resourceId)) { return resourceId; } resourceId = toShortName(resourceId); if (hasServiceProvider(resourceId)) { return resourceId; } return null; }
private String findResourceProviderId(String resourceId) throws OpenEJBException { if (resourceId == null) { return null; } if (ServiceUtils.hasServiceProvider(resourceId)) { return resourceId; } if (resourceId.startsWith("java:")) { // can be an absolute path final String jndi = resourceId.substring("java:".length()); if (ServiceUtils.hasServiceProvider(jndi)) { return jndi; } } resourceId = toShortName(resourceId); if (ServiceUtils.hasServiceProvider(resourceId)) { return resourceId; } return null; }
private String findResourceProviderId(String resourceId) throws OpenEJBException { if (resourceId == null) { return null; } if (ServiceUtils.hasServiceProvider(resourceId)) { return resourceId; } if (resourceId.startsWith("java:")) { // can be an absolute path String jndi = resourceId.substring("java:".length()); if (jndi.startsWith("/")) { jndi = jndi.substring(1); } if (ServiceUtils.hasServiceProvider(jndi)) { return jndi; } } resourceId = toShortName(resourceId); if (ServiceUtils.hasServiceProvider(resourceId)) { return resourceId; } return null; }
final String shortName = toShortName(resourceId); final String message = "No existing resource found while attempting to Auto-link unmapped resource-ref '" + resourceId +
String shortName = toShortName(resourceId); String message = "No existing resource found while attempting to Auto-link unmapped resource-ref '" + resourceId + "' of type '" + type + "' for '" + beanName + "'. Looked for Resource(id=" + resourceId + ") and Resource(id=" + shortName + ")"; if (!autoCreateResources){
final String shortName = toShortName(resourceId); final String message = "No existing resource found while attempting to Auto-link unmapped resource-ref '" + resourceId +