📄 workflowstorehomefactory.java
字号:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. *//* * Generated file - Do not edit! */package com.opensymphony.workflow.spi.ejb;/** * Utility class for WorkflowStore. * @author <a href="mailto:hani@formicary.net">Hani Suleiman</a> * @version $Revision: 1.3 $ Date: Apr 7, 2003 Time: 10:57:28 PM */public class WorkflowStoreHomeFactory { //~ Static fields/initializers ///////////////////////////////////////////// public static final String COMP_NAME = "java:comp/env/ejb/WorkflowStore"; public static final String JNDI_NAME = "WorkflowStore"; /** Cached remote home (EJBHome). Uses lazy loading to obtain its value (loaded by getHome() methods). */ private static com.opensymphony.workflow.spi.ejb.WorkflowStoreHome cachedRemoteHome = null; //~ Methods //////////////////////////////////////////////////////////////// // Home interface lookup methods /** * Obtain remote home interface from default initial context * @return Home interface for WorkflowStore. Lookup using COMP_NAME */ public static com.opensymphony.workflow.spi.ejb.WorkflowStoreHome getHome() throws javax.naming.NamingException { if (cachedRemoteHome == null) { // Obtain initial context javax.naming.InitialContext initialContext = new javax.naming.InitialContext(); try { java.lang.Object objRef = initialContext.lookup(COMP_NAME); cachedRemoteHome = (com.opensymphony.workflow.spi.ejb.WorkflowStoreHome) javax.rmi.PortableRemoteObject.narrow(objRef, com.opensymphony.workflow.spi.ejb.WorkflowStoreHome.class); } finally { initialContext.close(); } } return cachedRemoteHome; } /** * Obtain remote home interface from parameterised initial context * @param environment Parameters to use for creating initial context * @return Home interface for WorkflowStore. Lookup using COMP_NAME */ public static com.opensymphony.workflow.spi.ejb.WorkflowStoreHome getHome(java.util.Hashtable environment) throws javax.naming.NamingException { // Obtain initial context javax.naming.InitialContext initialContext = new javax.naming.InitialContext(environment); try { java.lang.Object objRef = initialContext.lookup(COMP_NAME); return (com.opensymphony.workflow.spi.ejb.WorkflowStoreHome) javax.rmi.PortableRemoteObject.narrow(objRef, com.opensymphony.workflow.spi.ejb.WorkflowStoreHome.class); } finally { initialContext.close(); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -