Examples of NotificationManager


Examples of com.gitblit.manager.NotificationManager

    IStoredSettings settings = getSettings(deleteAll);
    XssFilter xssFilter = new AllowXssFilter();
    IRuntimeManager runtimeManager = new RuntimeManager(settings, xssFilter).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager, pluginManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, pluginManager, userManager).start();

    BranchTicketService service = new BranchTicketService(
        runtimeManager,
View Full Code Here

Examples of com.gitblit.manager.NotificationManager

    IStoredSettings settings = getSettings(deleteAll);
    XssFilter xssFilter = new AllowXssFilter();
    IRuntimeManager runtimeManager = new RuntimeManager(settings, xssFilter).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager, pluginManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, pluginManager, userManager).start();

    RedisTicketService service = new RedisTicketService(
        runtimeManager,
View Full Code Here

Examples of com.gitblit.manager.NotificationManager

  @Provides @Singleton IPluginManager providePluginManager(IRuntimeManager runtimeManager) {
    return new PluginManager(runtimeManager);
  }

  @Provides @Singleton INotificationManager provideNotificationManager(IStoredSettings settings) {
    return new NotificationManager(settings);
  }
View Full Code Here

Examples of org.apache.webbeans.event.NotificationManager

    public <T> Set<ObserverMethod<?>> defineObserverMethods(InjectionTargetBean<T> component, Class<T> clazz)
    {
        Asserts.assertNotNull(component, "component parameter can not be null");
        Asserts.nullCheckForClass(clazz);

        NotificationManager manager = webBeansContext.getBeanManagerImpl().getNotificationManager();

        Method[] candidateMethods = AnnotationUtil.getMethodsWithParameterAnnotation(clazz, Observes.class);

        // From normal
        createObserverMethods(component, clazz, candidateMethods);

        return manager.addObservableComponentMethods(component);

    }
View Full Code Here

Examples of org.apache.webbeans.event.NotificationManager

     */
    public BeanManagerImpl(WebBeansContext webBeansContext)
    {
        this.webBeansContext = webBeansContext;
        injectionResolver = new InjectionResolver(webBeansContext);
        notificationManager = new NotificationManager(webBeansContext);
        annotatedElementFactory = webBeansContext.getAnnotatedElementFactory();
    }
View Full Code Here

Examples of org.apache.webbeans.event.NotificationManager

    public static <T> void defineObserverMethods(ObservesMethodsOwner<T> component, Class<T> clazz)
    {
        Asserts.assertNotNull(component, "component parameter can not be null");
        Asserts.nullCheckForClass(clazz);

        NotificationManager manager = NotificationManager.getInstance();

        Method[] candidateMethods = AnnotationUtil.getMethodsWithParameterAnnotation(clazz, Observes.class);

        for (Method candidateMethod : candidateMethods)
        {
            EventUtil.checkObserverMethodConditions(candidateMethod, clazz);
            component.addObservableMethod(candidateMethod);
           
            addMethodInjectionPointMetaData((AbstractComponent<T>)component, candidateMethod);
        }

        manager.addObservableComponentMethods(component);

    }
View Full Code Here

Examples of org.apache.webbeans.event.NotificationManager

    public static <T> void defineObserverMethods(ObservesMethodsOwner<T> component, Class<T> clazz)
    {
        Asserts.assertNotNull(component, "component parameter can not be null");
        Asserts.nullCheckForClass(clazz);

        NotificationManager manager = NotificationManager.getInstance();

        Method[] candidateMethods = AnnotationUtil.getMethodsWithParameterAnnotation(clazz, Observes.class);

        // From @Relizations
        Method[] genericMethods = new Method[0];
        if (clazz.getAnnotation(Realizes.class) != null)
        {
            genericMethods = AnnotationUtil.getMethodsWithParameterAnnotation(clazz.getSuperclass(), Observes.class);
        }

        // From normal
        createObserverMethodsWithRealizes(component, clazz, candidateMethods, false);

        // From @Realizations
        createObserverMethodsWithRealizes(component, clazz.getSuperclass(), genericMethods, true);

        manager.addObservableComponentMethods(component);

    }
View Full Code Here

Examples of org.apache.webbeans.event.NotificationManager

     * system.
     */
    public ManagerImpl()
    {
        injectionResolver = new InjectionResolver(this);
        notificationManager = new NotificationManager();
    }   
View Full Code Here

Examples of org.apache.webbeans.event.NotificationManager

    public static <T> Set<ObserverMethod<?>> defineObserverMethods(InjectionTargetBean<T> component, Class<T> clazz)
    {
        Asserts.assertNotNull(component, "component parameter can not be null");
        Asserts.nullCheckForClass(clazz);

        NotificationManager manager = NotificationManager.getInstance();

        Method[] candidateMethods = AnnotationUtil.getMethodsWithParameterAnnotation(clazz, Observes.class);

        // From normal
        createObserverMethods(component, clazz, candidateMethods);

        return manager.addObservableComponentMethods(component);

    }
View Full Code Here

Examples of org.apache.webbeans.event.NotificationManager

     * system.
     */
    public BeanManagerImpl()
    {
        injectionResolver = new InjectionResolver(this);
        notificationManager = new NotificationManager();
        annotatedElementFactory = AnnotatedElementFactory.getInstance();
    }   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.