Search in sources :

Example 1 with ReflectionCache

use of org.jboss.weld.resources.ReflectionCache in project core by weld.

the class WeldStartup method setupInitialServices.

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);
}
Also used : ReflectionCache(org.jboss.weld.resources.ReflectionCache) SharedObjectCache(org.jboss.weld.resources.SharedObjectCache) TypeStore(org.jboss.weld.metadata.TypeStore) SlimAnnotatedTypeStore(org.jboss.weld.annotated.slim.SlimAnnotatedTypeStore) ClassTransformer(org.jboss.weld.resources.ClassTransformer)

Example 2 with ReflectionCache

use of org.jboss.weld.resources.ReflectionCache in project HotswapAgent by HotswapProjects.

the class BeanReloadExecutor method getClassTransformer.

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;
}
Also used : ReflectionCache(org.jboss.weld.resources.ReflectionCache) SharedObjectCache(org.jboss.weld.resources.SharedObjectCache) TypeStore(org.jboss.weld.metadata.TypeStore) ClassTransformer(org.jboss.weld.resources.ClassTransformer)

Aggregations

TypeStore (org.jboss.weld.metadata.TypeStore)2 ClassTransformer (org.jboss.weld.resources.ClassTransformer)2 ReflectionCache (org.jboss.weld.resources.ReflectionCache)2 SharedObjectCache (org.jboss.weld.resources.SharedObjectCache)2 SlimAnnotatedTypeStore (org.jboss.weld.annotated.slim.SlimAnnotatedTypeStore)1