?? currentstepprevhomefactory.java
字號:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. *//* * Generated file - Do not edit! */package com.opensymphony.workflow.spi.ejb;/** * Utility class for CurrentStepPrev. * @author Hani Suleiman (hani@formicary.net) Date: Apr 7, 2003 Time: 8:17:26 PM */public class CurrentStepPrevHomeFactory { //~ Static fields/initializers ///////////////////////////////////////////// public static final String COMP_NAME = "java:comp/env/ejb/CurrentStepPrev"; public static final String JNDI_NAME = "CurrentStepPrev"; /** Cached local home (EJBLocalHome). Uses lazy loading to obtain its value (loaded by getLocalHome() methods). */ private static com.opensymphony.workflow.spi.ejb.CurrentStepPrevLocalHome cachedLocalHome = null; //~ Methods //////////////////////////////////////////////////////////////// // Home interface lookup methods /** * Obtain local home interface from default initial context * @return Local home interface for CurrentStepPrev. Lookup using COMP_NAME */ public static com.opensymphony.workflow.spi.ejb.CurrentStepPrevLocalHome getLocalHome() throws javax.naming.NamingException { if (cachedLocalHome == null) { cachedLocalHome = (com.opensymphony.workflow.spi.ejb.CurrentStepPrevLocalHome) lookupHome(null, COMP_NAME, com.opensymphony.workflow.spi.ejb.CurrentStepPrevLocalHome.class); } return cachedLocalHome; } private static Object lookupHome(java.util.Hashtable environment, String jndiName, Class narrowTo) throws javax.naming.NamingException { // Obtain initial context javax.naming.InitialContext initialContext = new javax.naming.InitialContext(environment); try { Object objRef = initialContext.lookup(jndiName); // only narrow if necessary if (java.rmi.Remote.class.isAssignableFrom(narrowTo)) { return javax.rmi.PortableRemoteObject.narrow(objRef, narrowTo); } else { return objRef; } } finally { initialContext.close(); } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -