// setup the channel creation options
final Properties channelProps = clusterConfig.getChannelCreationOptions();
if (channelProps != null) {
// we don't use the deployment CL here since the XNIO project isn't necessarily added as a dep on the deployment's
// module CL
final OptionMap channelCreationOptions = getOptionMapFromProperties(channelProps, this.getClass().getClassLoader());
logger.debug("Channel creation options for cluster " + clusterConfig.getClusterName() + " are " + channelCreationOptions);
this.setChannelCreationOptions(channelCreationOptions);
}
// setup connection creation options
final Properties connectionProps = clusterConfig.getConnectionOptions();
if (connectionProps != null) {
// we don't use the deployment CL here since the XNIO project isn't necessarily added as a dep on the deployment's
// module CL
final OptionMap connectionCreationOptions = getOptionMapFromProperties(connectionProps, this.getClass().getClassLoader());
logger.debug("Connection creation options for cluster " + clusterConfig.getClusterName() + " are " + connectionCreationOptions);
this.setConnectionCreationOptions(connectionCreationOptions);
}
this.setCallbackHandler(serviceRegistry, clusterConfig.getUserName(), clusterConfig.getSecurityRealm());