java.lang.Object
org.glassfish.hk2.configuration.persistence.properties.PropertyFileBean

public class PropertyFileBean extends Object
This bean configures the PropertyFileService itself. An implementation of this bean can be added directly to the Hub, or the utility method PropertyFileService.addPropertyFileBean(PropertyFileBean) can be used to add this bean to the Hub
  • Field Details

  • Constructor Details

    • PropertyFileBean

      public PropertyFileBean()
      A null constructor for creating an empty PropertyFileBean
    • PropertyFileBean

      public PropertyFileBean(PropertyFileBean copyMe)
      This method will create a deep copy of the passed in PropertyFileBean
      Parameters:
      copyMe - The non-null bean to copy
  • Method Details

    • getTypeMapping

      public Map<String,Class<?>> getTypeMapping()
      Gets the mapping from type name to bean class
      Returns:
      A copy of the type name to bean class mapping
    • addTypeMapping

      public void addTypeMapping(String typeName, Class<?> beanClass)
      Adds a type mapping to the set of type mappings
      Parameters:
      typeName - The name of the type. May not be null
      beanClass - The bean class to which this type should be mapped. May not be null
    • removeTypeMapping

      public Class<?> removeTypeMapping(String typeName)
      Removes the type mapping with the given name
      Parameters:
      typeName - removes the type mapping of the given name. May not be null
      Returns:
      The class associated with the type name, or null if there was no type mapping with the given name
    • getTypeMapping

      public Class<?> getTypeMapping(String typeName)
      Gets the type mapping with the given name
      Parameters:
      typeName - the type mapping to search for. May not be null
      Returns:
      The class associated with the type name, or null if there was no type mapping with the given name