Class TypedResourceMapping<R>

java.lang.Object
com.tangosol.coherence.config.ResourceMapping<R>
com.tangosol.coherence.config.TypedResourceMapping<R>
Direct Known Subclasses:
CacheMapping, TopicMapping

public abstract class TypedResourceMapping<R> extends ResourceMapping<R>
  • Constructor Details

    • TypedResourceMapping

      public TypedResourceMapping(String sNamePattern, String sSchemeName)
      Construct a TypedResourceMapping that will use raw types by default.
      Parameters:
      sNamePattern - the pattern that maps names to schemes
      sSchemeName - the name of the scheme to which resources matching this TypedResourceMapping will be associated
  • Method Details

    • getValueClassName

      public String getValueClassName()
      Obtains the name of the value class for the resource using this TypedResourceMapping.
      Returns:
      the name of the value class or null if raw types are being used
    • setValueClassName

      @Injectable("value-type") public void setValueClassName(String sElementClassName)
      Sets the name of the value class for the resources using this TypedResourceMapping.
      Parameters:
      sElementClassName - the name of the value class or null if raw types are being used
    • usesRawTypes

      public boolean usesRawTypes()
      Determines if the TypedResourceMapping is configured to use raw-types (ie: no type checking or constraints)
      Returns:
      true if using raw types, false otherwise