Package ch.grengine.load
Class DefaultTopCodeCacheFactory
java.lang.Object
ch.grengine.load.DefaultTopCodeCacheFactory
- All Implemented Interfaces:
TopCodeCacheFactory
Factory for instances of
DefaultTopCodeCache- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for instances ofDefaultTopCodeCacheFactory. -
Constructor Summary
ConstructorsModifierConstructorDescriptionconstructor from defaults for all settings.DefaultTopCodeCacheFactory(CompilerFactory compilerFactory) constructor from given compiler factory and defaults for all other settings.protectedconstructor from builder. -
Method Summary
Modifier and TypeMethodDescriptiongets the builder.gets the compiler factory.newTopCodeCache(ClassLoader parent) creates a newTopCodeCacheinstance with given parent class loader.
-
Constructor Details
-
DefaultTopCodeCacheFactory
constructor from builder.- Parameters:
builder- builder- Since:
- 1.0
-
DefaultTopCodeCacheFactory
public DefaultTopCodeCacheFactory()constructor from defaults for all settings.- Since:
- 1.0
-
DefaultTopCodeCacheFactory
constructor from given compiler factory and defaults for all other settings.- Parameters:
compilerFactory- compiler factory- Throws:
NullPointerException- if the compiler factory is null- Since:
- 1.0
-
-
Method Details
-
newTopCodeCache
Description copied from interface:TopCodeCacheFactorycreates a newTopCodeCacheinstance with given parent class loader.- Specified by:
newTopCodeCachein interfaceTopCodeCacheFactory- Parameters:
parent- parent class loader- Returns:
- instance
-
getBuilder
gets the builder.- Returns:
- builder
- Since:
- 1.0
-
getCompilerFactory
gets the compiler factory.- Returns:
- compiler factory
- Since:
- 1.0
-