@Produces @Named @ApplicationScoped public HistoryService historyService() { return processEngine().getHistoryService(); }
@Produces @Named @RequestScoped public FlashContext getFlashContext() { return currentContext; }
/** * Creates an alias for #createScriptExecutorBean * which creates a helper which allows to use a {@link ScriptExecutor} within el-expressions * @return el-helper for the script-executor */ @Produces @Dependent @Named(SCRIPT_EXECUTOR_ALIAS) public Map<String, Object> createScriptExecutorBeanForAlias() { return createScriptExecutorBean(); }
@Produces @ApplicationScoped public static INewUserBootstrapper provideNewUserBootstrapper() { return new INewUserBootstrapper() { @Override public void bootstrapUser(UserBean user, IStorage storage) throws StorageException { // Do nothing special. } }; }
@RequestScoped public class RadioProducer { @Produces Radio<String, List<Integer>> radio = new Radio<String, List<Integer>>() { }; }
@Produces @Named @ApplicationScoped public RuntimeService runtimeService() { return processEngine().getRuntimeService(); }
@Named @Produces @RequestScoped public ExternalContext getExternalContext(final FacesContext context) { return context.getExternalContext(); } }
/** * Creates an alias for #createScriptExecutorBean * which creates a helper which allows to use a {@link ScriptExecutor} within el-expressions * @return el-helper for the script-executor */ @Produces @Dependent @Named(SCRIPT_EXECUTOR_ALIAS) public Map<String, Object> createScriptExecutorBeanForAlias() { return createScriptExecutorBean(); }
@Produces @ApplicationScoped public static IDataEncrypter provideDataEncrypter(@New DefaultDataEncrypter defaultEncrypter) { CurrentDataEncrypter.instance = defaultEncrypter; return defaultEncrypter; }
@Produces @RequestScoped public int produce() { return 0; } }
@Produces @Named @ApplicationScoped public IdentityService identityService() { return processEngine().getIdentityService(); }
/** * Returns the web beans conversation controller */ @Produces @Named("javax.enterprise.context.conversation") @RequestScoped public ConversationContext getConversation() { return new ConversationContext(); }
/** * Creates a helper which allows to use a {@link ScriptExecutor} within el-expressions * @return el-helper for the script-executor */ @Produces @Dependent @Named(SCRIPT_EXECUTOR) //TODO add support for args public Map<String, Object> createScriptExecutorBean() { return createExpressionLanguageHelper(); }
@Produces @ApplicationScoped public ArtifactLookup lookup() { return ArtifactLookup.get(); } }