public interface SingleConfigCode<T extends ConfigBeanProxy>
new SingleConfigCode<HttpListener>() {
public boolean run(HttpListener httpListener) throws PropertyVetoException {
httpListener.setPort("8989");
return true;
}
};
This new SingleConfigCode can then be used with in the ConfigSupport utilities to
run this code within a Transaction freeing the developer to know/care about Transaction
APIs and semantics.java.lang.Object run(T param) throws java.beans.PropertyVetoException, TransactionFailure
param - is the configuration object protected by the transactionjava.beans.PropertyVetoException - if the changes cannot be applied
to the configurationTransactionFailureCopyright © 2013 Oracle Corporation. All Rights Reserved.