Package org.jvnet.hk2.config
Interface ConfigCode
-
public interface ConfigCodeAllows multiple object as part of the transaction but requires manual casting.- Author:
- Jerome Dochez
- See Also:
Single Oject equivalent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectrun(ConfigBeanProxy... params)Runs the following command passing the configration object.
-
-
-
Method Detail
-
run
Object run(ConfigBeanProxy... params) throws PropertyVetoException, TransactionFailure
Runs the following command passing the configration object. The code will be run within a transaction, returning true will commit the transaction, false will abort it.- Parameters:
params- is the list of configuration objects protected by the transaction- Returns:
- true if the changes on param should be commited or false for abort.
- Throws:
PropertyVetoException- if the changes cannot be applied to the configurationTransactionFailure
-
-