protected boolean shouldConfigure( ComponentDescriptor<T> descriptor ) { String configuratorId = descriptor.getComponentConfigurator(); if (StringUtils.isEmpty(configuratorId)) { return true; } try { ComponentConfigurator componentConfigurator = getContainer().lookup(ComponentConfigurator.class, configuratorId); return componentConfigurator == null || componentConfigurator.getClass().equals(BasicComponentConfigurator.class); } catch (ComponentLookupException e) { } return true; } protected String fromXML(String elementName) {
String configuratorId = descriptor.getComponentConfigurator();
protected boolean shouldConfigure(ComponentDescriptor descriptor, ClassRealm realm) { String configuratorId = descriptor.getComponentConfigurator(); if (StringUtils.isEmpty(configuratorId)) { return true; } try { ComponentConfigurator componentConfigurator = (ComponentConfigurator) getContainer().lookup(ComponentConfigurator.ROLE, configuratorId, realm); return componentConfigurator == null || componentConfigurator.getClass().equals(BasicComponentConfigurator.class); } catch (ComponentLookupException e) { } return true; } protected String fromXML(String elementName) {
String configuratorId = descriptor.getComponentConfigurator();
String configuratorId = descriptor.getComponentConfigurator();
element( w, "component-configurator", cd.getComponentConfigurator() );