Refine search
FastAnnotatedTypeLoader(BeanManagerImpl manager, ClassTransformer transformer, ClassFileServices classFileServices, ContainerLifecycleEvents events, FastProcessAnnotatedTypeResolver resolver) { super(manager, transformer, events); this.fallback = new AnnotatedTypeLoader(manager, transformer, events); this.classFileServices = classFileServices; this.resolver = resolver; this.checkTypeModifiers = initCheckTypeModifiers(); }
/** * Creates a new {@link SlimAnnotatedTypeContext} instance for a class with the specified class name. This method may return null if there is a problem * loading the class or this class is not needed for further processing (e.g. an annotation or a vetoed class). * * @param className the specified class name * @param bdaId the identifier of the bean archive this class resides in * @return a new {@code SlimAnnotatedTypeContext} for a specified class or null */ public <T> SlimAnnotatedTypeContext<T> loadAnnotatedType(String className, String bdaId) { return createContext(loadAnnotatedType(this.<T> loadClass(className), bdaId)); }
/** * Creates a new {@link SlimAnnotatedTypeContext} instance for the given class. This method may return null if there is a problem * loading the class or this class is not needed for further processing (e.g. an annotation or a vetoed class). * * @param clazz the given class * @param bdaId the identifier of the bean archive this class resides in * @return a new {@code SlimAnnotatedTypeContext} for a specified class or null */ public <T> SlimAnnotatedTypeContext<T> loadAnnotatedType(Class<T> clazz, String bdaId) { return createContext(internalLoadAnnotatedType(clazz, bdaId)); }
/** * Creates a new {@link SlimAnnotatedTypeContext} instance for a class with the specified class name. This method may return null if there is a problem * loading the class or this class is not needed for further processing (e.g. an annotation or a vetoed class). * * @param className the specified class name * @param bdaId the identifier of the bean archive this class resides in * @return a new {@code SlimAnnotatedTypeContext} for a specified class or null */ public <T> SlimAnnotatedTypeContext<T> loadAnnotatedType(String className, String bdaId) { return loadAnnotatedType(this.<T> loadClass(className), bdaId); }
protected AnnotatedTypeLoader createAnnotatedTypeLoader() { if (classFileServices != null) { // Since FastProcessAnnotatedTypeResolver is installed after BeanDeployers are created, we need to query deploymentManager's services instead of the manager of this deployer final FastProcessAnnotatedTypeResolver resolver = Container.instance(getManager()).deploymentManager().getServices() .get(FastProcessAnnotatedTypeResolver.class); if (resolver != null) { return new FastAnnotatedTypeLoader(getManager(), classTransformer, classFileServices, containerLifecycleEvents, resolver); } } // if FastProcessAnnotatedTypeResolver is not available, fall back to AnnotatedTypeLoader return new AnnotatedTypeLoader(getManager(), classTransformer, containerLifecycleEvents); }
/** * Loads a given class, creates a {@link SlimAnnotatedTypeContext} for it and stores it in {@link BeanDeployerEnvironment}. */ public BeanDeployer addClass(String className, AnnotatedTypeLoader loader) { addIfNotNull(loader.loadAnnotatedType(className, getManager().getId())); return this; }
/** * Loads a given class, creates a {@link SlimAnnotatedTypeContext} for it and stores it in {@link BeanDeployerEnvironment}. */ public BeanDeployer addClass(String className, AnnotatedTypeLoader loader) { SlimAnnotatedTypeContext<?> ctx = loader.loadAnnotatedType(className, getManager().getId()); if (ctx != null) { getEnvironment().addAnnotatedType(ctx); } return this; }
if (!observerMethods.isEmpty()) { return createContext(className, classFileInfo, observerMethods, bdaId); return createContext(className, classFileInfo, observerMethods, bdaId); return fallback.loadAnnotatedType(className, bdaId);
protected <T> Class<T> loadClass(String className) { if (isModuleInfo(className)) { return null; } try { return cast(resourceLoader.classForName(className)); } catch (ResourceLoadingException e) { missingDependenciesRegistry.handleResourceLoadingException(className, e); return null; } }
protected AnnotatedTypeLoader createAnnotatedTypeLoader() { if (classFileServices != null) { // Since FastProcessAnnotatedTypeResolver is installed after BeanDeployers are created, we need to query deploymentManager's services instead of the manager of this deployer final FastProcessAnnotatedTypeResolver resolver = Container.instance(getManager()).deploymentManager().getServices() .get(FastProcessAnnotatedTypeResolver.class); if (resolver != null) { return new FastAnnotatedTypeLoader(getManager(), classTransformer, classFileServices, containerLifecycleEvents, resolver); } } // if FastProcessAnnotatedTypeResolver is not available, fall back to AnnotatedTypeLoader return new AnnotatedTypeLoader(getManager(), classTransformer, containerLifecycleEvents); }
/** * Loads a given class, creates a {@link SlimAnnotatedTypeContext} for it and stores it in {@link BeanDeployerEnvironment}. */ public BeanDeployer addClass(String className, AnnotatedTypeLoader loader) { addIfNotNull(loader.loadAnnotatedType(className, getManager().getId())); return this; }
if (!observerMethods.isEmpty()) { return createContext(className, classFileInfo, observerMethods, bdaId); return createContext(className, classFileInfo, observerMethods, bdaId); return fallback.loadAnnotatedType(className, bdaId);
/** * Creates a new {@link SlimAnnotatedTypeContext} instance for a class with the specified class name. This method may return null if there is a problem * loading the class or this class is not needed for further processing (e.g. an annotation or a vetoed class). * * @param className the specified class name * @param bdaId the identifier of the bean archive this class resides in * @return a new {@code SlimAnnotatedTypeContext} for a specified class or null */ public <T> SlimAnnotatedTypeContext<T> loadAnnotatedType(String className, String bdaId) { return loadAnnotatedType(this.<T> loadClass(className), bdaId); }
protected <T> Class<T> loadClass(String className) { if (isModuleInfo(className)) { return null; } try { return cast(resourceLoader.classForName(className)); } catch (ResourceLoadingException e) { missingDependenciesRegistry.handleResourceLoadingException(className, e); return null; } }
protected AnnotatedTypeLoader createAnnotatedTypeLoader() { if (classFileServices != null) { // Since FastProcessAnnotatedTypeResolver is installed after BeanDeployers are created, we need to query deploymentManager's services instead of the manager of this deployer final FastProcessAnnotatedTypeResolver resolver = Container.instance(getManager()).deploymentManager().getServices() .get(FastProcessAnnotatedTypeResolver.class); if (resolver != null) { return new FastAnnotatedTypeLoader(getManager(), classTransformer, classFileServices, containerLifecycleEvents, resolver); } } // if FastProcessAnnotatedTypeResolver is not available, fall back to AnnotatedTypeLoader return new AnnotatedTypeLoader(getManager(), classTransformer, containerLifecycleEvents); }
/** * Loads a given class, creates a {@link SlimAnnotatedTypeContext} for it and stores it in {@link BeanDeployerEnvironment}. */ public BeanDeployer addClass(String className, AnnotatedTypeLoader loader) { addIfNotNull(loader.loadAnnotatedType(className, getManager().getId())); return this; }
FastAnnotatedTypeLoader(BeanManagerImpl manager, ClassTransformer transformer, ClassFileServices classFileServices, ContainerLifecycleEvents events, FastProcessAnnotatedTypeResolver resolver) { super(manager, transformer, events); this.fallback = new AnnotatedTypeLoader(manager, transformer, events); this.classFileServices = classFileServices; this.resolver = resolver; this.checkTypeModifiers = initCheckTypeModifiers(); }
if (!observerMethods.isEmpty()) { return createContext(className, classFileInfo, observerMethods, bdaId); return createContext(className, classFileInfo, observerMethods, bdaId); return fallback.loadAnnotatedType(className, bdaId);
/** * Creates a new {@link SlimAnnotatedTypeContext} instance for a class with the specified class name. This method may return null if there is a problem * loading the class or this class is not needed for further processing (e.g. an annotation or a vetoed class). * * @param className the specified class name * @param bdaId the identifier of the bean archive this class resides in * @return a new {@code SlimAnnotatedTypeContext} for a specified class or null */ public <T> SlimAnnotatedTypeContext<T> loadAnnotatedType(String className, String bdaId) { return loadAnnotatedType(this.<T> loadClass(className), bdaId); }
/** * Creates a new {@link SlimAnnotatedTypeContext} instance for the given class. This method may return null if there is a problem * loading the class or this class is not needed for further processing (e.g. an annotation or a vetoed class). * * @param clazz the given class * @param bdaId the identifier of the bean archive this class resides in * @return a new {@code SlimAnnotatedTypeContext} for a specified class or null */ public <T> SlimAnnotatedTypeContext<T> loadAnnotatedType(Class<T> clazz, String bdaId) { return createContext(internalLoadAnnotatedType(clazz, bdaId)); }