Class PropertyModule

    • Field Detail

      • module

        protected final com.google.inject.Module module
      • c

        protected static int c
      • id

        public final int id
    • Constructor Detail

      • PropertyModule

        public PropertyModule​(com.google.inject.Module module)
        Constructs a PropertyModule that decorates a Module.
        Parameters:
        module - the decorated module
    • Method Detail

      • toEnumElement

        public static Object toEnumElement​(String name,
                                           Class<? extends Enum> type)
        Converts a String to an element of a given enumeration.
        Parameters:
        name - the name of the element
        type - the enumeration type
        Returns:
        the element of the enumeration
      • configure

        public void configure​(com.google.inject.Binder binder)
        Specified by:
        configure in interface com.google.inject.Module
      • getModule

        public com.google.inject.Module getModule()
        Returns the decorated Module.
        Returns:
        the module
      • getProperty

        public Property getProperty​(String name)
        Returns the Property with the specified name.
        Parameters:
        name - the name of the property
        Returns:
        the property with the specified name
      • getProperties

        public List<Property> getProperties()
        Returns the properties.
        Returns:
        the properties
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object