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

com.sun.jersey.server.impl.jcdi.JCDIComponentExtension Maven / Gradle / Ivy

There is a newer version: 1.19.4
Show newest version
package com.sun.jersey.server.impl.jcdi;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import javax.enterprise.event.Observes;
import javax.enterprise.inject.spi.Extension;
import javax.enterprise.inject.spi.ProcessInjectionTarget;

public class JCDIComponentExtension implements Extension {
    private final List l = new ArrayList();

    public Collection getProcessInjectionTargets() {
        return Collections.unmodifiableCollection(l);
    }

    public void clear() {
        l.clear();
    }

    void processInjectionTarget(@Observes ProcessInjectionTarget pit) {
        l.add(pit);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy