本文整理了Java中org.jboss.seam.annotations.Factory
类的一些代码示例,展示了Factory
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Factory
类的具体详情如下:
包路径:org.jboss.seam.annotations.Factory
类名称:Factory
暂无
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@Override
@Factory(value = "currentDocument", scope = EVENT)
public DocumentModel factoryCurrentDocument() {
return currentDocument;
}
代码示例来源:origin: org.jboss.seam/jboss-seam
FactoryMethod(Method method, Component component)
{
this.method = method;
this.component = component;
scope = method.getAnnotation(org.jboss.seam.annotations.Factory.class).scope();
}
代码示例来源:origin: org.jboss.seam/jboss-seam-resteasy
@Factory("org.jboss.seam.resteasy.dispatcher")
public Dispatcher getDispatcher()
{
return dispatcher;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@Override
@Factory(value = "changeableDocument", scope = EVENT)
public DocumentModel factoryChangeableDocument() {
return changeableDocument;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@Override
@Factory(value = "currentWorkspace", scope = EVENT)
public DocumentModel factoryCurrentWorkspace() {
return currentWorkspace;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@Override
@Factory(value = "currentContentRoot", scope = EVENT)
public DocumentModel factoryCurrentContentRoot() {
return currentContentRoot;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@Override
@Factory(value = "currentDomain", scope = EVENT)
public DocumentModel factoryCurrentDomain() {
return currentDomain;
}
代码示例来源:origin: org.jboss.seam.examples-ee6.ui/ui-ejb
@Factory("ages")
public int[] getAges() {
int[] ages = {18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};
return ages;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
/**
* 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");
}
代码示例来源:origin: org.jboss.seam/jboss-seam
@Factory(value="org.jboss.seam.core.applicationContext", autoCreate=true)
public Context getApplicationContext()
{
return org.jboss.seam.contexts.Contexts.getApplicationContext();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
@Factory(value="org.jboss.seam.security.configuration", autoCreate=true, scope=APPLICATION)
public javax.security.auth.login.Configuration getConfiguration()
{
return createConfiguration();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* 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();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* 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();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Override
@Factory(value = "isCurrentWorkListEmpty", scope = EVENT)
public boolean factoryForIsCurrentWorkListEmpty() {
return isWorkListEmpty();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
@Factory(value="org.jboss.seam.core.methodContext", autoCreate=true)
public Context getMethodContext()
{
return org.jboss.seam.contexts.Contexts.getMethodContext();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
@Factory(value="org.jboss.seam.core.pageContext", autoCreate=true)
public Context getPageContext()
{
return org.jboss.seam.contexts.Contexts.getPageContext();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
@Factory(value="org.jboss.seam.core.businessProcessContext", autoCreate=true)
public Context getBusinessProcessContext()
{
return org.jboss.seam.contexts.Contexts.getBusinessProcessContext();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@Override
@Factory(value = "selectedTemplateId")
public ContextStringWrapper FactoryForSelectedTemplateId() {
return new ContextStringWrapper("none");
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@Override
@Factory(value = "selectedSecurityModel")
public ContextStringWrapper FactoryForSelectSecurityModel() {
return new ContextStringWrapper("inherit");
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@Override
@Factory(value = "currentSuperSpace", scope = EVENT)
public DocumentModel factoryCurrentSuperSpace() {
return getCurrentSuperSpace();
}
内容来源于网络,如有侵权,请联系作者删除!