@Override public String getDefaultFor(ModuleURN inURN, String inAttribute) throws ModuleException { String propertyValue = null; synchronized (this) { if(ReceiverFactory.INSTANCE_URN.equals(inURN)) { if(mReceiverProperties != null) { propertyValue = mReceiverProperties.get(inAttribute); } } if(ClientModuleFactory.INSTANCE_URN.parent().equals(inURN)) { if(mClientProperties != null) { propertyValue = mClientProperties.get(inAttribute); } } } //fallback on the properties file, in case we fail to add new //client/receiver module properties to the spring configuration. return propertyValue != null ? propertyValue : super.getDefaultFor(inURN, inAttribute); }
ModuleURN providerURN = module.getURN().parent(); assert providerURN != null; if(!getModuleFactory(providerURN).isMultipleInstances()) {
ModuleURN parent = inModuleURN.parent(); ModuleFactory factory = findFactoryWithURN(parent); if(factory != null && factory.isAutoInstantiate()) {