private ResourceIdentifier getResourceIdentifier(final Map.Entry<String, Object> resources) { if (honoConfig.isSingleTenant()) { return ResourceIdentifier.fromStringAssumingDefaultTenant(resources.getKey()); } else { return ResourceIdentifier.fromString(resources.getKey()); } }
private ResourceIdentifier getResourceIdentifier(final String address) { if (honoConfig.isSingleTenant()) { return ResourceIdentifier.fromStringAssumingDefaultTenant(address); } else { return ResourceIdentifier.fromString(address); } }
/** * Creates a resource identifier for a given address. * * @param address The address. If this service is configured for * a single tenant only then the address is assumed to <em>not</em> contain a tenant * component. * @return The identifier representing the address. * @throws IllegalArgumentException if the given address does not represent a valid resource identifier. */ protected final ResourceIdentifier getResourceIdentifier(final String address) { if (getConfig().isSingleTenant()) { return ResourceIdentifier.fromStringAssumingDefaultTenant(address); } else { return ResourceIdentifier.fromString(address); } }
/** * Creates a resource identifier for a given address. * * @param address The address. If this service is configured for * a single tenant only then the address is assumed to <em>not</em> contain a tenant * component. * @return The identifier representing the address. * @throws IllegalArgumentException if the given address does not represent a valid resource identifier. */ protected final ResourceIdentifier getResourceIdentifier(final String address) { if (getConfig().isSingleTenant()) { return ResourceIdentifier.fromStringAssumingDefaultTenant(address); } else { return ResourceIdentifier.fromString(address); } }