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 aTypedResourceMapping
that will use raw types by default. -
Method Summary
Modifier and TypeMethodDescriptionObtains the name of the value class for the resource using thisTypedResourceMapping
.void
setValueClassName
(String sElementClassName) Sets the name of the value class for the resources using thisTypedResourceMapping
.boolean
Determines if theTypedResourceMapping
is 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 aTypedResourceMapping
that will use raw types by default.- Parameters:
sNamePattern
- the pattern that maps names to schemessSchemeName
- the name of the scheme to which resources matching thisTypedResourceMapping
will 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
null
if 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 ornull
if raw types are being used
-
usesRawTypes
public boolean usesRawTypes()Determines if theTypedResourceMapping
is configured to use raw-types (ie: no type checking or constraints)- Returns:
true
if using raw types,false
otherwise
-