/** * Adds a new component dynamically */ public void addEndpoint(BeanEndpoint endpoint) throws Exception { super.addEndpoint(endpoint); } }
@Override protected void doInit() throws Exception { super.doInit(); List endpoints = getConfiguredEndpoints(); if (endpoints != null && !endpoints.isEmpty()) { Iterator iter = endpoints.iterator(); while (iter.hasNext()) { Endpoint endpoint = (Endpoint) iter.next(); if (endpoint == null) { logger.warn("Ignoring null endpoint in list: {}", endpoints); continue; } addEndpoint(endpoint); } } serviceUnit.init(); }