本文整理了Java中org.jboss.seam.annotations.Install
类的一些代码示例,展示了Install
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Install
类的具体详情如下:
包路径:org.jboss.seam.annotations.Install
类名称:Install
暂无
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* A component for direct rendering of
* templates. Especially useful with
* Seam Mail.
*
*/
@Name("org.jboss.seam.faces.renderer")
@Install(false)
public abstract class Renderer
{
public abstract String render(String viewId);
public static Renderer instance()
{
return (Renderer) Component.getInstance(Renderer.class);
}
}
代码示例来源:origin: org.jboss.seam/jboss-seam
public String[] getClassDependencies()
{
Install install = componentClass.getAnnotation(Install.class);
if (install == null)
{
return null;
}
return install.classDependencies();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
public boolean isInstalled()
{
if (installed != null)
{
return installed;
}
Install install = componentClass.getAnnotation(Install.class);
if (install == null)
{
return true;
}
return install.debug() ? Init.instance().isDebug() : install.value();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
@Install(false)
@Entity
public class MockSecureEntity implements Serializable
代码示例来源:origin: org.jboss.seam/jboss-seam
@Name("org.jboss.seam.core.ConversationIdGenerator")
@Scope(ScopeType.APPLICATION)
@Install(precedence=Install.BUILT_IN)
public class ConversationIdGenerator
{
private static AtomicInteger uniqueId = new AtomicInteger(0);
public String getNextId() {
//TODO: this is not cluster safe!!!!!
return Integer.toString(uniqueId.incrementAndGet());
}
public static ConversationIdGenerator instance() {
ConversationIdGenerator instance =
(ConversationIdGenerator) Component.getInstance("org.jboss.seam.core.ConversationIdGenerator");
return (instance!=null) ? instance : new ConversationIdGenerator();
}
}
代码示例来源:origin: opentoutatice-ecm.collab-tools/opentoutatice-collab-tools-ecm
/**
* @author David Chevrier.
*
*/
@Name("webActions")
@Scope(ScopeType.CONVERSATION)
@Install(precedence = ExtendedSeamPrecedence.ADD_ON)
public class ToutaticeCTWebActionsBean extends ToutaticeWebActionsBean {
private static final long serialVersionUID = -6124671913159928250L;
@Override
public boolean isInPortalViewContext() {
WidgetsAdapterService widgetsAdapterService = Framework.getLocalService(WidgetsAdapterService.class);
widgetsAdapterService.addPortalViewsIds("send_notification_email", "document_notif_email", "confirm_mail_sending", "mail_sending");
return widgetsAdapterService.isInPortalViewContext();
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
/**
* Externalize serverLocation Factory to avoid NavigationContext reentrant calls
*
* @author Thierry Delprat
*/
@Name("serverLocator")
@Scope(CONVERSATION)
@Install(precedence = FRAMEWORK)
public class ServerContextBean implements Serializable {
private static final long serialVersionUID = 1L;
private RepositoryLocation currentServerLocation;
@Factory(value = "currentServerLocation", scope = EVENT)
public RepositoryLocation getCurrentServerLocation() {
return currentServerLocation;
}
public void setRepositoryLocation(RepositoryLocation serverLocation) {
this.currentServerLocation = serverLocation;
}
}
代码示例来源:origin: org.jboss.seam/jboss-seam-debug
@Name("org.jboss.seam.debug.jsf.debugRedirect")
@BypassInterceptors
@Install(debug = true, precedence = BUILT_IN, classDependencies = "javax.faces.context.FacesContext")
public class DebugRedirect
{
private String viewId;
public String getViewId()
{
return viewId;
}
public void setViewId(String viewId)
{
this.viewId = viewId;
}
public void execute()
{
FacesManager.instance().redirect(viewId, null, false);
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Name("treeInvalidator")
@Scope(SESSION)
@Install(precedence = Install.FRAMEWORK)
public class TreeInvalidatorBean implements Serializable {
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* Support for the pooled task list.
*
* @see TaskInstanceList
* @author Gavin King
*/
@Name("org.jboss.seam.bpm.pooledTaskInstanceList")
@Scope(ScopeType.APPLICATION)
@Install(precedence=BUILT_IN, dependencies="org.jboss.seam.bpm.jbpm")
public class PooledTaskInstanceList
{
@Unwrap
@Transactional
public List<TaskInstance> getPooledTaskInstanceList()
{
Actor actor = Actor.instance();
String actorId = actor.getId();
if ( actorId == null ) return null;
ArrayList groupIds = new ArrayList( actor.getGroupActorIds() );
groupIds.add(actorId);
return ManagedJbpmContext.instance().getGroupTaskList(groupIds);
}
}
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* Support for the task list.
*
* @see TaskInstanceListForType
* @see PooledTask
* @author <a href="mailto:steve@hibernate.org">Steve Ebersole</a>
* @author Gavin King
*/
@Name("org.jboss.seam.bpm.taskInstanceList")
@Scope(APPLICATION)
@Install(precedence=BUILT_IN, dependencies="org.jboss.seam.bpm.jbpm")
public class TaskInstanceList
{
@Unwrap
@Transactional
public List<TaskInstance> getTaskInstanceList()
{
return getTaskInstanceList( Actor.instance().getId() );
}
private List<TaskInstance> getTaskInstanceList(String actorId)
{
if ( actorId == null ) return null;
return ManagedJbpmContext.instance().getTaskList(actorId);
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Name("appNameFactory")
@Scope(ScopeType.STATELESS)
@Install(precedence = FRAMEWORK)
public class NuxeoProductNameFactory implements Serializable {
private static final long serialVersionUID = 1L;
@Factory(value = "nuxeoApplicationName", scope = ScopeType.APPLICATION)
public String getNuxeoProductName() {
return Framework.getProperty(Environment.PRODUCT_NAME);
}
@Factory(value = "nuxeoApplicationVersion", scope = ScopeType.APPLICATION)
public String getNuxeoProductVersion() {
return Framework.getProperty(Environment.PRODUCT_VERSION);
}
/**
* 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.nuxeo.ecm.platform/nuxeo-platform-webapp-base
/**
* Manages the tree for reduced utilization, like for popup. Performs additional work when a node is selected such as
* saving the selection and redirecting towards the required page.
* <p>
* The scope is PAGE to reinitialize the tree for new utilization.
*
* @author <a href="mailto:tmartins@nuxeo.com">Thierry Martins</a>
*/
@Scope(PAGE)
@Name("reducedTreeActions")
@Install(precedence = FRAMEWORK)
public class ReducedTreeActionsBean extends TreeActionsBean {
private static final long serialVersionUID = 1L;
@Override
public List<DocumentTreeNode> getTreeRoots() {
return getTreeRoots(true);
}
/**
* @since 5.4
* @return a list containing a DocumentTreeNode for the Root document
*/
public List<DocumentTreeNode> getRootNode() {
return getTreeRoots(true, documentManager.getRootDocument());
}
}
代码示例来源:origin: opentoutatice-ecm.platform/opentoutatice-ecm-platform-web
@Install(precedence = ExtendedSeamPrecedence.TOUTATICE)
public class ToutaticeLockActionsBean extends LockActionsBean {
代码示例来源:origin: opentoutatice-ecm.workflows-integration/opentoutatice-addon-workflows-integration-ecm
@Install(precedence = ExtendedSeamPrecedence.ADD_ON)
public class IntegrationSkinBean extends ToutaticeSkinBean {
代码示例来源:origin: org.osivia.demo/proto-cns-nuxeo-custom
@Install(precedence = ExtendedSeamPrecedence.CUSTOM)
public class CnsDocumentRoutingActionsBean extends IntegrationDocumentRoutingActionsBean {
代码示例来源:origin: org.jboss.seam/jboss-seam
/**
* Dummy component that lets us install the
* EjbSynchronizations via the tag
* transaction:ejb-transaction
*
* @see EjbSynchronizations
* @author Gavin King
*
*/
@Name("org.jboss.seam.transaction.ejbTransaction")
@Scope(ScopeType.STATELESS)
@Install(precedence=BUILT_IN, value=false)
@BypassInterceptors
public class EjbTransaction {}
代码示例来源:origin: opentoutatice-ecm.platform/opentoutatice-ecm-platform-attached-files
@Install(precedence = ExtendedSeamPrecedence.TOUTATICE + 100)
public class OttcDocumentActionsBean extends ToutaticeDocumentActionsBean {
代码示例来源:origin: opentoutatice-ecm.platform/opentoutatice-ecm-platform-web
@Name("documentTemplatesActions")
@Scope(CONVERSATION)
@Install(precedence = ExtendedSeamPrecedence.TOUTATICE)
public class ToutaticeDocumentTemplatesActionsBean extends DocumentTemplatesActionsBean {
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@Name("dashboardNavigationHelper")
@Scope(ScopeType.STATELESS)
@Install(precedence = Install.FRAMEWORK)
public class DefaultDashboardNavigationHelper implements DashboardNavigationHelper {
public static final String HOME_TAB = "MAIN_TABS:home";
public static final String DASHBOARD_VIEW = "view_home";
@In(create = true)
protected transient WebActions webActions;
@Override
public String navigateToDashboard() {
webActions.setCurrentTabIds(HOME_TAB);
return DASHBOARD_VIEW;
}
}
内容来源于网络,如有侵权,请联系作者删除!