* The component has been injected with any dependency and
* will be placed into commission by the subsystem.
*/
@Override
public void postConstruct() {
NetworkConfig networkConfig = config.getNetworkConfig();
configListener = new DynamicConfigListener(config);
ObservableBean bean = (ObservableBean) ConfigSupport.getImpl(networkConfig.getNetworkListeners());
bean.addListener(configListener);
bean = (ObservableBean) ConfigSupport.getImpl(config.getHttpService());
bean.addListener(configListener);
bean = (ObservableBean) ConfigSupport.getImpl(server);
bean.addListener(configListener);
//transactions.addListenerForType(SystemProperty.class, configListener);
configListener.setGrizzlyService(this);
configListener.setLogger(logger);
try {
futures = new ArrayList<Future<Result<Thread>>>();
for (NetworkListener listener : networkConfig.getNetworkListeners().getNetworkListener()) {
createNetworkProxy(listener);
}
/*
* Ideally (and ultimately), all services that need lazy Init will add a network-listener element