@Override @Factory(value = "currentDocument", scope = EVENT) public DocumentModel factoryCurrentDocument() { return currentDocument; }
FactoryMethod(Method method, Component component) { this.method = method; this.component = component; scope = method.getAnnotation(org.jboss.seam.annotations.Factory.class).scope(); }
@Factory("org.jboss.seam.resteasy.dispatcher") public Dispatcher getDispatcher() { return dispatcher; }
@Override @Factory(value = "changeableDocument", scope = EVENT) public DocumentModel factoryChangeableDocument() { return changeableDocument; }
@Override @Factory(value = "currentWorkspace", scope = EVENT) public DocumentModel factoryCurrentWorkspace() { return currentWorkspace; }
@Override @Factory(value = "currentContentRoot", scope = EVENT) public DocumentModel factoryCurrentContentRoot() { return currentContentRoot; }
@Override @Factory(value = "currentDomain", scope = EVENT) public DocumentModel factoryCurrentDomain() { return currentDomain; }
@Factory("ages") public int[] getAges() { int[] ages = {18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30}; return ages; }
/** * Gives current year used in copyright (in case this needs to be extracted from a configuration in the future). * * @since 5.9.2 */ @Factory(value = "copyrightCurrentYear", scope = ScopeType.APPLICATION) public String getCurrentYearAsString() { return new DateTime().toString("Y"); }
@Factory(value="org.jboss.seam.core.applicationContext", autoCreate=true) public Context getApplicationContext() { return org.jboss.seam.contexts.Contexts.getApplicationContext(); }
@Factory(value="org.jboss.seam.security.configuration", autoCreate=true, scope=APPLICATION) public javax.security.auth.login.Configuration getConfiguration() { return createConfiguration(); }
/** * Create the Map and cache it in the EVENT scope. No need to cache it in * the SESSION scope, since it is inexpensive to create. * * @return a Map that interpolates messages in the Seam ResourceBundle */ @Factory(value = "org.jboss.seam.international.messages", autoCreate = true, scope = EVENT) public Map<String, String> getMessages() { return createMap(); }
/** * Create a Map in the event scope. When the theme is changed, ThemeSelector * is responsible for removing the Map from the event context. * */ @Factory(value = "org.jboss.seam.theme.theme", autoCreate = true, scope = EVENT) public java.util.Map getTheme() { return createMap(); }
@Override @Factory(value = "isCurrentWorkListEmpty", scope = EVENT) public boolean factoryForIsCurrentWorkListEmpty() { return isWorkListEmpty(); }
@Factory(value="org.jboss.seam.core.methodContext", autoCreate=true) public Context getMethodContext() { return org.jboss.seam.contexts.Contexts.getMethodContext(); }
@Factory(value="org.jboss.seam.core.pageContext", autoCreate=true) public Context getPageContext() { return org.jboss.seam.contexts.Contexts.getPageContext(); }
@Factory(value="org.jboss.seam.core.businessProcessContext", autoCreate=true) public Context getBusinessProcessContext() { return org.jboss.seam.contexts.Contexts.getBusinessProcessContext(); }
@Override @Factory(value = "selectedTemplateId") public ContextStringWrapper FactoryForSelectedTemplateId() { return new ContextStringWrapper("none"); }
@Override @Factory(value = "selectedSecurityModel") public ContextStringWrapper FactoryForSelectSecurityModel() { return new ContextStringWrapper("inherit"); }
@Override @Factory(value = "currentSuperSpace", scope = EVENT) public DocumentModel factoryCurrentSuperSpace() { return getCurrentSuperSpace(); }