|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.coherence.config.scheme.AbstractScheme
com.tangosol.coherence.config.scheme.AbstractServiceScheme
com.tangosol.coherence.config.scheme.AbstractCachingScheme
com.tangosol.coherence.config.scheme.AbstractLocalCachingScheme
com.tangosol.coherence.config.scheme.ClassScheme
public class ClassScheme
The ClassScheme class is responsible for building custom CachingSchemes and custom CacheStoreSchemes.
Note: The ParameterizedBuilder interface is needed by both CacheStoreScheme and ElementProcessorHelper.
This class will automatically inject the following types and named values into realized classes that have been annotated with @Injectable.
BackingMapManagerContext (optionally named "manager-context")ConfigurableCacheFactoryString.class named "cache-name")ClassLoader (optionally named "class-loader")ResourceRegistryCacheConfigResourceRegistry provided by the ConfigurableCacheFactory.Injectable| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder |
|---|
ParameterizedBuilder.ReflectionSupport |
| Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilder |
|---|
MapBuilder.Dependencies |
| Constructor Summary | |
|---|---|
ClassScheme() |
|
| Method Summary | |
|---|---|
java.util.List |
getEventInterceptorBuilders()Obtains the List of NamedEventInterceptorBuilders that have been defined for the ServiceScheme. |
java.lang.String |
getServiceType()Return the service type. |
boolean |
isRunningClusterNeeded()Return true if a running cluster is needed before using a service. |
java.lang.Object |
realize(com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader, ParameterList listParameters)Realizes (creates if necessary) an instance of a object of type T, using the provided ParameterResolver to resolve values any referenced Parameters. |
NamedCache |
realizeCache(com.tangosol.config.expression.ParameterResolver resolver, MapBuilder.Dependencies dependencies)Realizes a NamedCache (possibly "ensuring it") based on the state of the builder, the provided ParameterResolver and MapBuilder dependencies. |
java.util.Map |
realizeMap(com.tangosol.config.expression.ParameterResolver resolver, MapBuilder.Dependencies dependencies)Realize a Map based on the state of the MapBuilder, resolvable parameters and provided MapBuilder.Dependencies. |
boolean |
realizes(java.lang.Class clzClass, com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader)Determines if the ParameterizedBuilder will realize an instance of the specified class (without requiring the builder to actually realize an object). |
protected void |
validate()Validate the ClassScheme properties. |
| Methods inherited from class com.tangosol.coherence.config.scheme.AbstractLocalCachingScheme |
|---|
getCustomBuilder, setCustomBuilder |
| Methods inherited from class com.tangosol.coherence.config.scheme.AbstractCachingScheme |
|---|
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, setListenerBuilder, validate |
| Methods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme |
|---|
getScopedServiceName, getScopedServiceName, getScopeName, getServiceBuilder, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, setAutoStart, setScopeName, setServiceName, setXml |
| Methods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme |
|---|
getSchemeName, isAnonymous, setSchemeName |
| Methods inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme |
|---|
getScopedServiceName, getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart |
| Methods inherited from interface com.tangosol.coherence.config.scheme.Scheme |
|---|
getSchemeName, isAnonymous |
| Constructor Detail |
|---|
public ClassScheme()
| Method Detail |
|---|
public java.lang.String getServiceType()
getServiceType in interface ServiceSchemegetServiceType in class AbstractLocalCachingSchemepublic java.util.List getEventInterceptorBuilders()
List of NamedEventInterceptorBuilders that have been defined for the ServiceScheme.
Note: For those ServiceSchemes don't support event interceptors, the returned value must be an empty list.
getEventInterceptorBuilders in interface ServiceSchemegetEventInterceptorBuilders in class AbstractLocalCachingSchemeList over NamedEventInterceptorBuilderspublic boolean isRunningClusterNeeded()
isRunningClusterNeeded in interface ServiceBuilderisRunningClusterNeeded in class AbstractLocalCachingScheme
public NamedCache realizeCache(com.tangosol.config.expression.ParameterResolver resolver,
MapBuilder.Dependencies dependencies)
NamedCache (possibly "ensuring it") based on the state of the builder, the provided ParameterResolver and MapBuilder dependencies.
The MapBuilder dependencies are required to satisfy the requirement when realizing a NamedCache additionally involves realizing one or more internal Maps.
realizeCache in interface NamedCacheBuilderrealizeCache in class AbstractCachingSchemeresolver - the ParameterResolverdependencies - the MapBuilder dependenciesNamedCache
public java.util.Map realizeMap(com.tangosol.config.expression.ParameterResolver resolver,
MapBuilder.Dependencies dependencies)
Map based on the state of the MapBuilder, resolvable parameters and provided MapBuilder.Dependencies.realizeMap in interface MapBuilderrealizeMap in class AbstractCachingSchemeresolver - the ParameterResolverdependencies - the MapBuilder.Dependencies for realizing the MapMap
public java.lang.Object realize(com.tangosol.config.expression.ParameterResolver resolver,
java.lang.ClassLoader loader,
ParameterList listParameters)
ParameterResolver to resolve values any referenced Parameters.realize in interface ParameterizedBuilderresolver - the ParameterResolver for resolving named Parametersloader - the ClassLoader for loading any necessary classes and if null the ClassLoader used to load the builder will be used insteadlistParameters - an optional ParameterList (may be null) to be used for realizing the instance, eg: used as constructor parameters
public boolean realizes(java.lang.Class clzClass,
com.tangosol.config.expression.ParameterResolver resolver,
java.lang.ClassLoader loader)
ParameterizedBuilder will realize an instance of the specified class (without requiring the builder to actually realize an object).
This method is synonymous with the Java keyword instanceof but allows dynamic runtime type querying of the types of objects a builder may realize.
realizes in interface ParameterizedBuilder.ReflectionSupportclzClass - the expected typeresolver - the ParameterResolver to use for resolving necessary Parametersloader - the ClassLoader for loading any necessary classes and if null the ClassLoader used to load the builder will be used insteadtrue if the ParameterizedBuilder will realize an instance of the class, false otherwiseprotected void validate()
validate in class AbstractServiceScheme
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||