private static ClassTransformer getClassTransformer() { TypeStore store = new TypeStore(); SharedObjectCache cache = new SharedObjectCache(); ReflectionCache reflectionCache = ReflectionCacheFactory.newInstance(store); ClassTransformer classTransformer = new ClassTransformer(store, cache, reflectionCache, "STATIC_INSTANCE"); return classTransformer; }
private void setupInitialServices() { if (initialServices.contains(TypeStore.class)) { return; } // instantiate initial services which we need for this phase TypeStore store = new TypeStore(); SharedObjectCache cache = new SharedObjectCache(); ReflectionCache reflectionCache = ReflectionCacheFactory.newInstance(store); ClassTransformer classTransformer = new ClassTransformer(store, cache, reflectionCache, contextId); initialServices.add(TypeStore.class, store); initialServices.add(SharedObjectCache.class, cache); initialServices.add(ReflectionCache.class, reflectionCache); initialServices.add(ClassTransformer.class, classTransformer); }
private void setupInitialServices() { if (initialServices.contains(TypeStore.class)) { return; } // instantiate initial services which we need for this phase TypeStore store = new TypeStore(); SharedObjectCache cache = new SharedObjectCache(); ReflectionCache reflectionCache = ReflectionCacheFactory.newInstance(store); ClassTransformer classTransformer = new ClassTransformer(store, cache, reflectionCache, contextId); initialServices.add(TypeStore.class, store); initialServices.add(SharedObjectCache.class, cache); initialServices.add(ReflectionCache.class, reflectionCache); initialServices.add(ClassTransformer.class, classTransformer); }
private void setupInitialServices() { if (initialServices.contains(TypeStore.class)) { return; } // instantiate initial services which we need for this phase TypeStore store = new TypeStore(); SharedObjectCache cache = new SharedObjectCache(); ReflectionCache reflectionCache = ReflectionCacheFactory.newInstance(store); ClassTransformer classTransformer = new ClassTransformer(store, cache, reflectionCache, contextId); initialServices.add(TypeStore.class, store); initialServices.add(SharedObjectCache.class, cache); initialServices.add(ReflectionCache.class, reflectionCache); initialServices.add(ClassTransformer.class, classTransformer); }
private void setupInitialServices() { if (initialServices.contains(TypeStore.class)) { return; } // instantiate initial services which we need for this phase TypeStore store = new TypeStore(); SharedObjectCache cache = new SharedObjectCache(); ReflectionCache reflectionCache = ReflectionCacheFactory.newInstance(store); ClassTransformer classTransformer = new ClassTransformer(store, cache, reflectionCache, contextId); initialServices.add(TypeStore.class, store); initialServices.add(SharedObjectCache.class, cache); initialServices.add(ReflectionCache.class, reflectionCache); initialServices.add(ClassTransformer.class, classTransformer); }
private void setupInitialServices() { if (initialServices.contains(TypeStore.class)) { return; } // instantiate initial services which we need for this phase TypeStore store = new TypeStore(); SharedObjectCache cache = new SharedObjectCache(); ReflectionCache reflectionCache = ReflectionCacheFactory.newInstance(store); ClassTransformer classTransformer = new ClassTransformer(store, cache, reflectionCache, contextId); initialServices.add(TypeStore.class, store); initialServices.add(SharedObjectCache.class, cache); initialServices.add(ReflectionCache.class, reflectionCache); initialServices.add(ClassTransformer.class, classTransformer); }
private void setupInitialServices() { if (initialServices.contains(TypeStore.class)) { return; } // instantiate initial services which we need for this phase TypeStore store = new TypeStore(); SharedObjectCache cache = new SharedObjectCache(); ReflectionCache reflectionCache = ReflectionCacheFactory.newInstance(store); ClassTransformer classTransformer = new ClassTransformer(store, cache, reflectionCache, contextId); initialServices.add(TypeStore.class, store); initialServices.add(SharedObjectCache.class, cache); initialServices.add(ReflectionCache.class, reflectionCache); initialServices.add(ClassTransformer.class, classTransformer); }