org.jboss.seam.annotations.Factory.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.jboss.seam.annotations.Factory.<init>()方法的一些代码示例,展示了Factory.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Factory.<init>()方法的具体详情如下:
包路径:org.jboss.seam.annotations.Factory
类名称:Factory
方法名:<init>

Factory.<init>介绍

暂无

代码示例

代码示例来源: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();
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base

/**
 * @deprecated this information is now held by content views
 */
@Deprecated
@Factory(value = "currentAvailableListingLayoutNames", scope = EVENT)
public List<String> getAvailableLayoutsForCurrentDocument() {
  if (currentAvailableListingLayoutNames == null) {
    DocumentModel currentDocument = navigationContext.getCurrentDocument();
    currentAvailableListingLayoutNames = getAvailableLayoutsForDocument(currentDocument);
  }
  return currentAvailableListingLayoutNames;
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base

/**
 * @deprecated this information is now held by content views
 */
@Deprecated
@Factory(value = "currentListingLayoutName", scope = EVENT)
public String getLayoutForCurrentDocument() {
  if (currentListingLayoutName == null) {
    DocumentModel currentDocument = navigationContext.getCurrentDocument();
    currentListingLayoutName = getLayoutForDocument(currentDocument);
  }
  return currentListingLayoutName;
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base

/**
 * Returns true if configuration property to remove optimizations around actions (for compatibility) has been
 * enabled.
 *
 * @since 8.2
 */
@Factory(value = "removeActionOptims", scope = ScopeType.SESSION)
public boolean removeActionOptims() {
  ConfigurationService cs = Framework.getService(ConfigurationService.class);
  return cs.isBooleanPropertyTrue("nuxeo.jsf.actions.removeActionOptims");
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base

@Factory(value = "dataCollector", scope = ScopeType.PAGE)
public DocumentModel getCollector() {
  if (metadataCollector == null) {
    metadataCollector = new SimpleDocumentModel(getSchemas());
  }
  return metadataCollector;
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core

@Override
@Factory(value = "currentDocumentCanBeUnlocked", scope = ScopeType.EVENT)
public Boolean getCanUnlockCurrentDoc() {
  DocumentModel currentDocument = navigationContext.getCurrentDocument();
  return getCanUnlockDoc(currentDocument);
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core

@Override
@Begin(pageflow = "createWorkspace", nested = true)
@Factory(value = "tmpWorkspace")
public DocumentModel getTmpWorkspace() {
  if (tmpWorkspace == null) {
    tmpWorkspace = documentManager.createDocumentModel("Workspace");
  }
  return tmpWorkspace;
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base

@Override
@Factory(value = "subTabsActionsList", scope = EVENT)
public List<Action> getSubTabsList() {
  if (subTabsActionsList == null) {
    String currentTabId = getCurrentTabId();
    if (currentTabId != null) {
      subTabsCategory = TabActionsSelection.getSubTabCategory(currentTabId);
      subTabsActionsList = getActionsList(subTabsCategory);
    }
  }
  return subTabsActionsList;
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base

@Factory(value = "typesMap", scope = EVENT)
public Map<String, List<List<Type>>> getTypesList() {
  // XXX : should cache per currentDocument type
  if (typesMap == null
      || (seamReload.isDevModeSet() && seamReload.shouldResetCache(typeManager, typesMapTimestamp))) {
    // cache the list of allowed subtypes
    populateTypesList();
  }
  selectedType = null;
  return typesMap;
}

代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base

@Override
@Factory(value = "currentSubTabAction", scope = EVENT)
public Action getCurrentSubTabAction() {
  Action action = getCurrentTabAction();
  if (action != null) {
    return getCurrentTabAction(TabActionsSelection.getSubTabCategory(action.getId()));
  }
  return null;
}

相关文章