public final void addModel(ConfigurationMetadata model) { models.put(model.getNamespaceURI(), model); }
private void initBean() { String beanClassName = SpringUtils.getBeanClassName(configuration.getModel().getNamespaceURI()); Class beanClass = null; try { beanClass = Class.forName(beanClassName); } catch (ClassCastException ex) { LOG.log(Level.SEVERE, "Could not load bean class " + beanClassName, ex); return; } catch (ClassNotFoundException ex) { LOG.log(Level.SEVERE, "Could not load bean class " + beanClassName, ex); return; } try { bean = beanClass.newInstance(); } catch (Exception e) { LOG.log(Level.SEVERE, "Could not create bean instance " + beanClassName, e); return; } }
public Configuration getChild(String namespaceURI, Object childId) { for (Configurator c : configurator.getClients()) { if (namespaceURI.equals(c.getConfiguration().getModel().getNamespaceURI()) && childId.equals(c.getConfiguration().getId())) { return c.getConfiguration(); } } if (LOG.isLoggable(Level.FINE)) { LOG.fine("Could not find child configuration with id: " + childId); } return null; }
public synchronized void registerClient(Configurator c) { // replace an existing client hook if it has the same namespace and id Object clientId = c.getConfiguration().getId(); String clientNamepace = c.getConfiguration().getModel().getNamespaceURI(); for (Configurator client : clients) { if (clientId.equals(client.getConfiguration().getId()) && clientNamepace.equals(client.getConfiguration().getModel().getNamespaceURI())) { clients.remove(client); break; } } clients.add(c); } public void unregisterClient(Configurator c) {
String className = SpringUtils.getBeanClassName(model.getNamespaceURI());
private void findBean(CeltixXmlBeanFactory beanFactory) { String beanClassName = SpringUtils.getBeanClassName(configuration.getModel().getNamespaceURI()); Class beanClass = null; try {