
com.sun.jersey.server.impl.jcdi.JCDIComponentExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jersey-bundle Show documentation
Show all versions of jersey-bundle Show documentation
A bundle containing code of all jar-based modules that provide
JAX-RS and Jersey-related features. Such a bundle is *only intended* for
developers that do not use Maven's dependency system.
The bundle does not include code for contributes, tests and samples.
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 - 2025 Weber Informatics LLC | Privacy Policy