/** * Gets all component configurations with types that extend or implement * specific component type. * * @param componentType * the component types to match * @return a list of component configurations that match with supplied type. * @throws UnifyException * if container is not started. */ public List<UnifyComponentConfig> getComponentConfigs(Class<? extends UnifyComponent> componentType) throws UnifyException { checkStarted(); List<UnifyComponentConfig> configList = new ArrayList<UnifyComponentConfig>(); for (InternalUnifyComponentInfo iuc : internalUnifyComponentInfos.values()) { if (componentType.isAssignableFrom(iuc.getType())) { configList.add(iuc.getUnifyComponentConfig()); } } return configList; }
managedBusinessServiceConfigList.add(iuci.getUnifyComponentConfig());
InternalUnifyComponentInfo iuci = getInternalUnifyComponentInfo(name); if (iuci != null) { unifyComponentConfig = iuci.getUnifyComponentConfig(); unifyComponentConfig = iuci.getUnifyComponentConfig();
/** * Gets component configuration by name. * * @param name * the component name * @return the component configuration if found, otherwise null. * @throws UnifyException * if container is not started. If an error occurs */ public UnifyComponentConfig getComponentConfig(String name) throws UnifyException { checkStarted(); InternalUnifyComponentInfo iuci = getInternalUnifyComponentInfo(name); if (iuci != null) { return iuci.getUnifyComponentConfig(); } return null; }
private Logger getLogger(String name) throws UnifyException { UnifyComponentConfig unifyComponentConfig = getInternalUnifyComponentInfo(name).getUnifyComponentConfig(); if (unifyComponentConfig == null) { throw new UnifyException(UnifyCoreErrorConstants.COMPONENT_UNKNOWN_COMP, name); } return new UnifyContainerLoggerImpl(unifyComponentConfig.getType()); }