/** * Create a new ConfigurationMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static ConfigurationMetaData create(ContainerConfigurationMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new ConfigurationMetaData(delegate); }
/** * Create a new ConfigurationMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static ConfigurationMetaData create(ContainerConfigurationMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new ConfigurationMetaData(delegate); }
/** * Get the container configuration * * @return the configuration * @throws IllegalStateException when the configuration could not be determined */ public ConfigurationMetaData getContainerConfiguration() { ContainerConfigurationMetaData containerConfigurationMetaData = getDelegate().determineContainerConfiguration(); return new ConfigurationMetaData(containerConfigurationMetaData); }
/** * Get the container configuration * * @return the configuration * @throws IllegalStateException when the configuration could not be determined */ public ConfigurationMetaData getContainerConfiguration() { ContainerConfigurationMetaData containerConfigurationMetaData = getDelegate().determineContainerConfiguration(); return new ConfigurationMetaData(containerConfigurationMetaData); }
/** * Get a configuration by name * * @param name the configuration name * @return the configuration or null if not found * @throws IllegalArgumentException for a null name */ public ConfigurationMetaData getConfigurationMetaDataByName(String name) { ContainerConfigurationMetaData delegate = getDelegate().getContainerConfiguration(name); if (delegate == null) return null; return new ConfigurationMetaData(delegate); }
/** * Get a configuration by name * * @param name the configuration name * @return the configuration or null if not found * @throws IllegalArgumentException for a null name */ public ConfigurationMetaData getConfigurationMetaDataByName(String name) { ContainerConfigurationMetaData delegate = getDelegate().getContainerConfiguration(name); if (delegate == null) return null; return new ConfigurationMetaData(delegate); }