Package com.tangosol.coherence.config
Class TypedResourceMapping<R>
java.lang.Object
com.tangosol.coherence.config.ResourceMapping<R>
com.tangosol.coherence.config.TypedResourceMapping<R>
- Direct Known Subclasses:
CacheMapping,TopicMapping
A typed
ResourceMapping.-
Constructor Summary
ConstructorsConstructorDescriptionTypedResourceMapping(String sNamePattern, String sSchemeName) Construct aTypedResourceMappingthat will use raw types by default. -
Method Summary
Modifier and TypeMethodDescriptionObtains the name of the value class for the resource using thisTypedResourceMapping.voidsetValueClassName(String sElementClassName) Sets the name of the value class for the resources using thisTypedResourceMapping.booleanDetermines if theTypedResourceMappingis configured to use raw-types (ie: no type checking or constraints)Methods inherited from class com.tangosol.coherence.config.ResourceMapping
getConfigElementName, getEventInterceptorBuilders, getNamePattern, getNameUsing, getParameterResolver, getResourceRegistry, getSchemeName, getSubMappings, getValue, getValue, getWildcardMatch, isForName, isInternal, postConstruct, preConstruct, setEventInterceptorBuilders, setInternal, setParameterResolver, usesWildcard, validateScheme
-
Constructor Details
-
TypedResourceMapping
Construct aTypedResourceMappingthat will use raw types by default.- Parameters:
sNamePattern- the pattern that maps names to schemessSchemeName- the name of the scheme to which resources matching thisTypedResourceMappingwill be associated
-
-
Method Details
-
getValueClassName
Obtains the name of the value class for the resource using thisTypedResourceMapping.- Returns:
- the name of the value class or
nullif raw types are being used
-
setValueClassName
Sets the name of the value class for the resources using thisTypedResourceMapping.- Parameters:
sElementClassName- the name of the value class ornullif raw types are being used
-
usesRawTypes
public boolean usesRawTypes()Determines if theTypedResourceMappingis configured to use raw-types (ie: no type checking or constraints)- Returns:
trueif using raw types,falseotherwise
-