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

com.yelstream.topp.execution.inject.spi.util.CustomContext Maven / Gradle / Ivy

package com.yelstream.topp.execution.inject.spi.util;

import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.context.spi.Context;
import jakarta.enterprise.context.spi.Contextual;
import jakarta.enterprise.context.spi.CreationalContext;

import java.lang.annotation.Annotation;

public class CustomContext implements Context {

    @Override
    public  T get(Contextual contextual) {
        // Implement the logic to get information associated with the contextual
        // For simplicity, we return null in this example
        return null;
    }

    @Override
    public  T get(Contextual contextual, CreationalContext creationalContext) {
        // Implement the logic to get information associated with the contextual
        // For simplicity, we return null in this example
        return null;
    }

    @Override
    public Class getScope() {
        return ApplicationScoped.class;
    }

    @Override
    public boolean isActive() {
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy