/** * Indicates that the given module was selected. * * Used to wire up the view selection events to the presenters logic. * * @param pickedModule the module that was selected or null if one was deselected. */ void moduleSelected(@Nullable MavenProjectDTO pickedModule);
public T getValue() { return bean.getValue(); }
public Class<T> getImplementationClass() { return bean.getImplementationClass(); }
public static boolean isOptional(final BeanEntry<Annotation,?> beanEntry) { try { Boolean isOptional = isOptional(beanEntry.getKey()); if (isOptional == null) { isOptional = isOptional(beanEntry.getImplementationClass()); if (isOptional == null) { isOptional = isOptional(beanEntry.getValue()); if (isOptional == null) { return false; } } } return isOptional.booleanValue(); } catch (Throwable e) { return false; } }
public String getKey() { return bean.getKey().value(); }
/** * Helper to register injectable types for Hudson when the container starts. * * @author <a href="mailto:jason@planet57.com">Jason Dillon</a> * @since 1.397 */ @Named @EagerSingleton public class RegisteredTypeInstaller { @Inject public RegisteredTypeInstaller(final Injectomatic injecto) { checkNotNull(injecto); injecto.register(hudson.model.Descriptor.class); injecto.register(hudson.model.Describable.class); injecto.register(hudson.Plugin.class); injecto.register(hudson.ExtensionPoint.class); } }
public static Module wire( final BeanScanning scanning, final Module... bindings ) { final org.eclipse.sisu.space.BeanScanning _scanning = org.eclipse.sisu.space.BeanScanning.valueOf( scanning.name() ); return org.eclipse.sisu.launch.Main.wire( _scanning, bindings ); } }
@Provides @Parameters String[] parameters() { return args.clone(); }
public String getDescription() { return bean.getDescription(); }
/** * Creates CacheManagerProviderImpl using the provided AppContext. See * {@link #CacheManagerProviderImpl(Logger, AppContext, File)} for details. * * @param appContext * @throws IOException */ @Inject public CacheManagerComponentImpl( @Nullable final AppContext appContext ) throws IOException { this( appContext, null ); }
public SmoothieComponent(final BeanEntry<Annotation,T> bean) { super(null); this.bean = bean; this.value = bean.getValue(); this.priority = priorityOf(bean); }
public Class<?> getType() { return getBean().getImplementationClass(); }
/** * Helper to register injectable types for Hudson when the container starts. * * @author <a href="mailto:jason@planet57.com">Jason Dillon</a> * @since 1.397 */ @Named @EagerSingleton public class RegisteredTypeInstaller { @Inject public RegisteredTypeInstaller(final Injectomatic injecto) { checkNotNull(injecto); injecto.register(hudson.model.Descriptor.class); injecto.register(hudson.model.Describable.class); injecto.register(hudson.Plugin.class); injecto.register(hudson.ExtensionPoint.class); } }
@Override public org.eclipse.sisu.space.BeanScanning scanning() { return org.eclipse.sisu.space.BeanScanning.valueOf( InjectedTest.this.scanning().name() ); }
@Inject public ExceptionCatchingModularRealmAuthorizer( Collection<Realm> realms, @Nullable RolePermissionResolver rolePermissionResolver ) { super( realms ); if ( null != rolePermissionResolver ) { setRolePermissionResolver( rolePermissionResolver ); } }
public SmoothieComponent(final BeanEntry<Annotation,T> bean) { super(null); this.bean = bean; this.value = bean.getValue(); this.priority = priorityOf(bean); }
public Class<?> getType() { return getBean().getImplementationClass(); }
@Override public org.eclipse.sisu.space.BeanScanning scanning() { return org.eclipse.sisu.space.BeanScanning.valueOf( InjectedTestCase.this.scanning().name() ); }
@Inject public DefaultRealmSecurityManager( @Nullable RolePermissionResolver rolePermissionResolver ) { logger.info( "@Deprecated use shiro-guice with org.sonatype.security.guice.SecurityModule instead" ); this.rolePermissionResolver = rolePermissionResolver; init(); }
public SpaceModule( final ClassSpace space, final BeanScanning scanning ) { final org.eclipse.sisu.space.BeanScanning _scanning = org.eclipse.sisu.space.BeanScanning.valueOf( scanning.name() ); delegate = new org.eclipse.sisu.space.SpaceModule( space, _scanning ).with( new LegacyStrategy() ); }