public class TypeAnalyzerFactory
extends com.streamscape.sef.dispatcher.AbstractTypeAnalyzerFactory
Title: Framework Support Library
Description: This class is used for creating of TypeAnalyzer
objects.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
TypeAnalyzer |
createTypeAnalyzer()
Creates a TypeAnalyzer object with the current strategy of type graph creation
(
SerializableFieldsOnlyStrategy by default), the current class loader (class
loader of the current context (Client or Runtime) by default) and the current semantic type
cache (type cache of the current context by default). |
TypeAnalyzer |
createTypeAnalyzer(java.lang.ClassLoader loader,
SemanticTypeCache cache,
TypeGraphCreationStrategy graphStrategy)
Creates a TypeAnalyzer object with the specified strategy of type graph creation, class loader
and semantic type cache.
|
TypeAnalyzer |
createTypeAnalyzer(TypeGraphCreationStrategy graphStrategy)
Creates a new
TypeAnalyzer instance with the specified strategy,
the current class loader (class loader of the current context (Client or Runtime) by default)
and the current semantic type cache (type cache of the current context by default). |
java.lang.ClassLoader |
getClassLoader()
Returns the class loader which is passed to new
TypeAnalyzer objects created by this
factory. |
static TypeAnalyzerFactory |
getInstance()
Returns the instance of this singleton.
|
SemanticTypeCache |
getSemanticTypeCache()
Returns the semantic type cache which is passed to new
TypeAnalyzer objects created
by this factory. |
TypeGraphCreationStrategy |
getStrategy()
Returns the strategy which is passed to new
TypeAnalyzer objects created by this
factory. |
void |
setClassLoader(java.lang.ClassLoader loader)
Sets the specified class loader to be used by
TypeAnalyzer objects created by this
factory. |
void |
setSemanticTypeCache(SemanticTypeCache typeCache)
Sets the specified semantic type cache to be used by
TypeAnalyzer objects created by
this factory. |
void |
setStrategy(TypeGraphCreationStrategy strategy)
Sets the specified strategy to be used by
TypeAnalyzer objects created by this
factory. |
public static TypeAnalyzerFactory getInstance()
SerializableFieldsOnlyStrategy
used for type graph
creation, the class loader of the current thread and an empty semantic type cache.public TypeAnalyzer createTypeAnalyzer()
SerializableFieldsOnlyStrategy
by default), the current class loader (class
loader of the current context (Client or Runtime) by default) and the current semantic type
cache (type cache of the current context by default).public TypeAnalyzer createTypeAnalyzer(TypeGraphCreationStrategy graphStrategy)
TypeAnalyzer
instance with the specified strategy,
the current class loader (class loader of the current context (Client or Runtime) by default)
and the current semantic type cache (type cache of the current context by default).graphStrategy
- the specified strategy.TypeAnalyzer
instance.public TypeAnalyzer createTypeAnalyzer(java.lang.ClassLoader loader, SemanticTypeCache cache, TypeGraphCreationStrategy graphStrategy)
loader
- Class loader to be set for the created TypeAnalyzercache
- Semantic type cache to be set for the created TypeAnalyzergraphStrategy
- Type graph creation strategy to be set for the created TypeAnalyzerpublic void setStrategy(TypeGraphCreationStrategy strategy)
TypeAnalyzer
objects created by this
factory.strategy
- the strategy to be set for new TypeAnalyzer
objects.public TypeGraphCreationStrategy getStrategy()
TypeAnalyzer
objects created by this
factory.TypeAnalyzer
objects.public void setClassLoader(java.lang.ClassLoader loader)
TypeAnalyzer
objects created by this
factory.loader
- The class loader to be set for new TypeAnalyzer
objects.public java.lang.ClassLoader getClassLoader()
TypeAnalyzer
objects created by this
factory.TypeAnalyzer
objects.public void setSemanticTypeCache(SemanticTypeCache typeCache)
TypeAnalyzer
objects created by
this factory.typeCache
- the semantic type cache to be set for new TypeAnalyzer
objects.public SemanticTypeCache getSemanticTypeCache()
TypeAnalyzer
objects created
by this factory.TypeAnalyzer
objects.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.