Class ClassPathResourceConfigurationPropertyLoader

    • Field Detail

      • logger

        protected final Logger logger
      • resourceName

        protected final java.lang.String resourceName
      • classLoader

        protected final java.lang.ClassLoader classLoader
      • loadedAll

        protected final boolean loadedAll
    • Constructor Detail

      • ClassPathResourceConfigurationPropertyLoader

        protected ClassPathResourceConfigurationPropertyLoader​(java.lang.String resourceName)
                                                        throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • ClassPathResourceConfigurationPropertyLoader

        protected ClassPathResourceConfigurationPropertyLoader​(@Nonnull
                                                               java.lang.String resourceName,
                                                               @Nullable
                                                               java.lang.ClassLoader classLoader)
      • ClassPathResourceConfigurationPropertyLoader

        protected ClassPathResourceConfigurationPropertyLoader​(@Nonnull
                                                               java.lang.String resourceName,
                                                               boolean loadedAll)
      • ClassPathResourceConfigurationPropertyLoader

        protected ClassPathResourceConfigurationPropertyLoader​(@Nonnull
                                                               java.lang.String resourceName,
                                                               @Nullable
                                                               java.lang.ClassLoader classLoader,
                                                               boolean loadedAll)
    • Method Detail

      • load

        public final java.util.List<ConfigurationProperty> load()
                                                         throws java.lang.Throwable
        Description copied from interface: ConfigurationPropertyLoader
        Loads a list of ConfigurationProperty instances.

        Example Usage

        
         ConfigurationPropertyLoader loader = ...; // Obtain an instance of a concrete implementation
         List<ConfigurationProperty> properties = loader.load();
         for (ConfigurationProperty property : properties) {
             System.out.println("Property Name: " + property.getName());
             System.out.println("Property Type: " + property.getType());
             System.out.println("Property Value: " + property.getValue());
         }
         
        Specified by:
        load in interface ConfigurationPropertyLoader
        Returns:
        a list of loaded ConfigurationProperty instances, or an empty list or null if no properties are loaded
        Throws:
        java.lang.Throwable - if any error occurs during generation
        See Also:
        ConfigurationProperty