/** * @author Mike Brock */ @Singleton @EnabledByProperty(value = "errai.ioc.async_bean_manager") public class AsyncBeanManagerProvider { @IOCProducer public AsyncBeanManager get() { return IOC.getAsyncBeanManager(); } }
/** * @author Mike Brock */ @Singleton @EnabledByProperty(value = "errai.ioc.async_bean_manager", negated = true) public class IOCBeanManagerProvider { @IOCProducer public SyncBeanManager get() { return IOC.getBeanManager(); } }
@EntryPoint @EnabledByProperty(value = "uberfire.plugin.mode.active") public class PluginEntryPoint { // Don't remove this injection point. It makes sure placeManager doesn't // get pruned in case -Derrai.ioc.reachability=Aggressive @SuppressWarnings("unused") @Inject private PlaceManager placeManager; @Produces @ApplicationScoped private SessionInfo currentSession(User identity) { return new SessionInfoImpl(identity); } }
/** * @author Mike Brock */ @IOCProvider @Singleton @EnabledByProperty("errai.ioc.async_bean_manager") public class AsyncDisposerProvider implements ContextualTypeProvider<Disposer> { @Inject AsyncBeanManager beanManager; @Override public Disposer provide(final Class<?>[] typeargs, final Annotation[] qualifiers) { return new Disposer() { @Override public void dispose(Object beanInstance) { beanManager.destroyBean(beanInstance); } }; } }
/** * @author Mike Brock */ @IOCProvider @Singleton @EnabledByProperty(value = "errai.ioc.async_bean_manager", negated = true) public class DisposerProvider implements ContextualTypeProvider<Disposer> { @Inject SyncBeanManager beanManager; @Override public Disposer provide(final Class<?>[] typeArguments, final Annotation[] qualifiers) { return new Disposer() { @Override public void dispose(final Object beanInstance) { beanManager.destroyBean(beanInstance); } }; } }
@EnabledByProperty(value = "uberfire.plugin.mode.active") public class PluginActivityManagerImpl implements ActivityManager {
@EntryPoint @EnabledByProperty(value = "uberfire.plugin.mode.active", negated = true) public class JSEntryPoint {
@EnabledByProperty(value = "uberfire.plugin.mode.active", negated = true) public class ActivityBeansCache {
@EntryPoint @EnabledByProperty(value = "uberfire.plugin.mode.active", negated = true) public class RuntimePluginStartup {
@EntryPoint @EnabledByProperty(value = "uberfire.plugin.mode.active", negated = true) public class RuntimePluginStartup {
@EntryPoint @Bundle("resources/i18n/Constants.properties") @EnabledByProperty(value = "uberfire.plugin.mode.active", negated = true) public class RuntimePluginsEntryPoint {
@EnabledByProperty(value = "uberfire.plugin.mode.active") public class PluginPlaceManagerImpl implements PlaceManager {
@EntryPoint @Bundle("resources/i18n/Constants.properties") @EnabledByProperty(value = "uberfire.plugin.mode.active", negated = true) public class RuntimePluginsEntryPoint {
@ApplicationScoped @EnabledByProperty(value = "uberfire.plugin.mode.active", negated = true) public class ActivityManagerImpl implements ActivityManager {
@EnabledByProperty(value = "uberfire.plugin.mode.active", negated = true) public class Workbench {
@SharedSingleton @EnabledByProperty(value = "uberfire.plugin.mode.active", negated = true) public class PlaceManagerImpl implements PlaceManager {