@EagerSingleton @javax.inject.Named static class CItem extends SomeItem { static boolean initialized; public CItem() { initialized = true; } }
@Named @EagerSingleton static class DefaultB03 { static boolean initialized; @Inject void initialize() { initialized = true; } }
@Named @EagerSingleton public class ObjectMapperInitializer { @Inject public ObjectMapperInitializer(@Named("siesta") javax.inject.Provider<ObjectMapper> mapperProvider) { ObjectMapper om = mapperProvider.get(); om.registerModule(new GuavaModule()); om.registerModule(new Jdk8Module()); } }
/** * Creates {@link SchedulerCapability}. * * @since 3.0 */ @Named @EagerSingleton public class SchedulerCapabilityBooter extends CapabilityBooterSupport { @Override protected void boot(final CapabilityRegistry registry) throws Exception { maybeAddCapability(registry, SchedulerCapabilityDescriptor.TYPE, true, null, null); } }
/** * Site-repository plugin. */ @Named @EagerSingleton public class SiteRepositoryPlugin extends PluginIdentity { /** * Expected groupId for plugin artifact. */ public static final String GROUP_ID = "org.sonatype.nexus.plugins"; /** * Expected artifactId for plugin artifact. */ public static final String ARTIFACT_ID = "nexus-site-repository-plugin"; @Inject public SiteRepositoryPlugin() throws Exception { super(GROUP_ID, ARTIFACT_ID); } }
/** * Automatically create Yum capability. * * @since yum 3.0 */ @Named @EagerSingleton public class YumCapabilitiesBooter extends CapabilityBooterSupport { @Override protected void boot(final CapabilityRegistry registry) throws Exception { maybeAddCapability( registry, YumCapabilityDescriptor.TYPE, true, // enabled null, // no notes new YumCapabilityConfiguration(YumRegistry.DEFAULT_MAX_NUMBER_PARALLEL_THREADS).asMap() ); } }
@EagerSingleton public class GuiceServletKitBootstrap extends AbstractServletKitBootstrap
@EagerSingleton public class RemoteControlLifecycle extends ComponentSupport
@EagerSingleton public class GuiceServletKitBootstrap extends AbstractServletKitBootstrap
@EagerSingleton public class Restlet1xPlugin extends PluginIdentity
@EagerSingleton public class RrbPlugin extends PluginIdentity
@EagerSingleton public class PluginConsolePlugin extends PluginIdentity
@EagerSingleton public class LdapPlugin extends PluginIdentity
@EagerSingleton public class IndexerLucenePlugin extends PluginIdentity
@EagerSingleton public class UnpackPlugin extends PluginIdentity
@EagerSingleton public class OrientPlugin extends PluginIdentity
@EagerSingleton public class YumPlugin extends PluginIdentity
@EagerSingleton public class GroovyPlugin extends PluginIdentity
@EagerSingleton public class TimelinePlugin extends PluginIdentity
@EagerSingleton public class GroovyRemotePlugin extends PluginIdentity