All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.atbash.ee.jsf.jerry.startup.SystemStartup Maven / Gradle / Ivy

Go to download

Jerry allows you to intercept (define a before and after callback) the main Renderer methods like decode, encodeBegin, encodeChildren, encodeEnd and getConvertedValue.

The newest version!
/*
 * Copyright 2014-2018 Rudy De Busscher
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package be.atbash.ee.jsf.jerry.startup;

import be.atbash.util.CDIUtils;

import javax.faces.event.AbortProcessingException;
import javax.faces.event.SystemEvent;
import javax.faces.event.SystemEventListener;

/**
 *
 */
public class SystemStartup implements SystemEventListener {
    @Override
    public void processEvent(SystemEvent systemEvent) throws AbortProcessingException {
        // FIXME Replace to use CDI ApplicationScoped event (also remove faces-config.xml)  ??
        CDIUtils.fireEvent(new StartupEvent());
    }

    @Override
    public boolean isListenerForSource(Object o) {
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy