leitstand-inventory-ui/src/main/java/io/leitstand/inventory/ui/InventoryModule.java
static Contribution contribution(String path) {
		String contrib = path.substring(0,path.lastIndexOf('/'));
		try {
			ClassLoader cl =  currentThread().getContextClassLoader();
			return loadContribution(cl.getResource(format(MODULE_PATH,path)))
				   .withBaseUri(contrib)
				   .build();
		} catch (Exception e) {
			LOG.severe(format("%s: Cannot process contribution %s for module %s. Reason: %s",
							  UIM0002E_CANNOT_PROCESS_MODULE_EXTENSION.getReasonCode(),
							  contrib,
							  MODULE_NAME,
							  e.getMessage()));
			LOG.log(FINE,e.getMessage(),e);
			throw new ModuleDescriptorException(e,
												UIM0002E_CANNOT_PROCESS_MODULE_EXTENSION,
												MODULE_NAME,
												contrib);
		}
	}
/**
	 * Loads a default inventory application.
	 * @param path the application configuration
	 * @return the contribution defined by the application
	 */
Loads a default inventory application.
@param path the application configuration
@return the contribution defined by the application
Loads a default inventory application . @param path the application configuration @return the contribution defined by the application
static Contribution contribution(String path) {
		String contrib = path.substring(0,path.lastIndexOf('/'));
		try {
			ClassLoader cl =  currentThread().getContextClassLoader();
			return loadContribution(cl.getResource(format(MODULE_PATH,path)))
				   .withBaseUri(contrib)
				   .build();
		} catch (Exception e) {
			LOG.severe(format("%s: Cannot process contribution %s for module %s. Reason: %s",
							  UIM0002E_CANNOT_PROCESS_MODULE_EXTENSION.getReasonCode(),
							  contrib,
							  MODULE_NAME,
							  e.getMessage()));
			LOG.log(FINE,e.getMessage(),e);
			throw new ModuleDescriptorException(e,
												UIM0002E_CANNOT_PROCESS_MODULE_EXTENSION,
												MODULE_NAME,
												contrib);
		}
	}
static Contribution contribution ( String path ) { String contrib = path . substring ( 0 , path . lastIndexOf ( '/' ) ) ; try { ClassLoader cl = currentThread ( ) . getContextClassLoader ( ) ; return loadContribution ( cl . getResource ( format ( MODULE_PATH , path ) ) ) . withBaseUri ( contrib ) . build ( ) ; } catch ( Exception e ) { LOG . severe ( format ( "%s: Cannot process contribution %s for module %s. Reason: %s" , UIM0002E_CANNOT_PROCESS_MODULE_EXTENSION . getReasonCode ( ) , contrib , MODULE_NAME , e . getMessage ( ) ) ) ; LOG . log ( FINE , e . getMessage ( ) , e ) ; throw new ModuleDescriptorException ( e , UIM0002E_CANNOT_PROCESS_MODULE_EXTENSION , MODULE_NAME , contrib ) ; } }
Loads a default inventory application.
Loads a default inventory application .