/** * Executes some logic on some config beans protected by a transaction. * * @param code code to execute * @param objects config beans participating to the transaction * @return list of property change events * @throws TransactionFailure when the code did run successfully due to a * transaction exception */ public static Object apply(ConfigCode code, ConfigBeanProxy... objects) throws TransactionFailure { ConfigBean source = (ConfigBean) ConfigBean.unwrap(objects[0]); return source.getHabitat().<ConfigSupport>getService(ConfigSupport.class)._apply(code, objects); }
/** * Executes some logic on some config beans protected by a transaction. * * @param code code to execute * @param objects config beans participating to the transaction * @return list of property change events * @throws TransactionFailure when the code did run successfully due to a * transaction exception */ public static Object apply(ConfigCode code, ConfigBeanProxy... objects) throws TransactionFailure { ConfigBean source = (ConfigBean) ConfigBean.unwrap(objects[0]); return source.getHabitat().getComponent(ConfigSupport.class)._apply(code, objects); }
/** * Executes some logic on some config beans protected by a transaction. * * @param code code to execute * @param objects config beans participating to the transaction * @return list of property change events * @throws TransactionFailure when the code did run successfully due to a * transaction exception */ public static Object apply(ConfigCode code, ConfigBeanProxy... objects) throws TransactionFailure { ConfigBean source = (ConfigBean) ConfigBean.unwrap(objects[0]); return source.getHabitat().getComponent(ConfigSupport.class)._apply(code, objects); }
/** * Executes some logic on some config beans protected by a transaction. * * @param code code to execute * @param objects config beans participating to the transaction * @return list of property change events * @throws TransactionFailure when the code did run successfully due to a * transaction exception */ public static Object apply(ConfigCode code, ConfigBeanProxy... objects) throws TransactionFailure { ConfigBean source = (ConfigBean) ConfigBean.unwrap(objects[0]); return source.getHabitat().<ConfigSupport>getService(ConfigSupport.class)._apply(code, objects); }
/** * Executes some logic on some config beans protected by a transaction. * * @param code code to execute * @param objects config beans participating to the transaction * @return list of property change events * @throws TransactionFailure when the code did run successfully due to a * transaction exception */ public static Object apply(ConfigCode code, ConfigBeanProxy... objects) throws TransactionFailure { ConfigBean source = (ConfigBean) ConfigBean.unwrap(objects[0]); return source.getHabitat().<ConfigSupport>getService(ConfigSupport.class)._apply(code, objects); }