User: vharcq
Date: 02/03/02 02:50:28
Added: core/test/src/xdoclet/retest/ref/ejb/interfaces
SimpleSF.java SimpleSFHome.java SimpleSFLocal.java
SimpleSFLocalHome.java SimpleSFUtil.java
Log:
Improvement of regression unit test
Revision Changes Path
1.1
xdoclet/core/test/src/xdoclet/retest/ref/ejb/interfaces/SimpleSF.java
Index: SimpleSF.java
===================================================================
/*
* Generated file - Do not edit!
*/
package xdoclet.retest.ref.ejb.interfaces;
import java.lang.*;
import javax.ejb.SessionBean;
/**
* Remote interface for simple/SimpleSF.
* @xdoclet-generated at 25-f�vr.-02 8:04:41
*/
public interface SimpleSF
extends javax.ejb.EJBObject
{
public void doSomething( ) throws java.rmi.RemoteException;
public void doSomething( int a ) throws java.rmi.RemoteException;
public void doSomething( int[] a ) throws java.rmi.RemoteException;
public void doSomething( String a ) throws java.rmi.RemoteException;
public void doSomething( String[] a ) throws java.rmi.RemoteException;
public int[] iadoSomething( ) throws java.rmi.RemoteException;
public int[] iadoSomething( int a ) throws java.rmi.RemoteException;
public int[] iadoSomething( int[] a ) throws java.rmi.RemoteException;
public int[] iadoSomething( String a ) throws java.rmi.RemoteException;
public int[] iadoSomething( String[] a ) throws java.rmi.RemoteException;
public int idoSomething( ) throws java.rmi.RemoteException;
public int idoSomething( int a ) throws java.rmi.RemoteException;
public int idoSomething( int[] a ) throws java.rmi.RemoteException;
public int idoSomething( String a ) throws java.rmi.RemoteException;
public int idoSomething( String[] a ) throws java.rmi.RemoteException;
public String[] sadoSomething( ) throws java.rmi.RemoteException;
public String[] sadoSomething( int[] a ) throws java.rmi.RemoteException;
public String[] sadoSomething( String a ) throws java.rmi.RemoteException;
public String[] sadoSomething( String[] a ) throws java.rmi.RemoteException;
public String sdoSomething( ) throws java.rmi.RemoteException;
public String sdoSomething( int a ) throws java.rmi.RemoteException;
public String sdoSomething( int[] a ) throws java.rmi.RemoteException;
public String sdoSomething( String a ) throws java.rmi.RemoteException;
public String sdoSomething( String[] a ) throws java.rmi.RemoteException;
public String[] siadoSomething( int a ) throws java.rmi.RemoteException;
}
1.1
xdoclet/core/test/src/xdoclet/retest/ref/ejb/interfaces/SimpleSFHome.java
Index: SimpleSFHome.java
===================================================================
/*
* Generated file - Do not edit!
*/
package xdoclet.retest.ref.ejb.interfaces;
import java.lang.*;
import javax.ejb.SessionBean;
/**
* Home interface for simple/SimpleSF.
* @xdoclet-generated at 25-f�vr.-02 8:04:40
*/
public interface SimpleSFHome
extends javax.ejb.EJBHome
{
public static final String COMP_NAME="java:comp/env/ejb/simple/SimpleSF";
public static final String JNDI_NAME="simple/SimpleSF";
public SimpleSF create() throws
java.rmi.RemoteException,javax.ejb.CreateException;
public SimpleSF create(int a) throws
java.rmi.RemoteException,javax.ejb.CreateException;
public SimpleSF create(int[] a) throws
java.rmi.RemoteException,javax.ejb.CreateException;
public SimpleSF create(String a) throws
java.rmi.RemoteException,javax.ejb.CreateException;
public SimpleSF create(String[] a) throws
java.rmi.RemoteException,javax.ejb.CreateException;
public SimpleSF createBlaBla() throws
java.rmi.RemoteException,javax.ejb.CreateException;
public SimpleSF createBlaBla(int a) throws
java.rmi.RemoteException,javax.ejb.CreateException;
public SimpleSF createBlaBla(int[] a) throws
java.rmi.RemoteException,javax.ejb.CreateException;
public SimpleSF createBlaBla(String a) throws
java.rmi.RemoteException,javax.ejb.CreateException;
public SimpleSF createBlaBla(String[] a) throws
java.rmi.RemoteException,javax.ejb.CreateException;
}
1.1
xdoclet/core/test/src/xdoclet/retest/ref/ejb/interfaces/SimpleSFLocal.java
Index: SimpleSFLocal.java
===================================================================
/*
* Generated file - Do not edit!
*/
package xdoclet.retest.ref.ejb.interfaces;
import java.lang.*;
import javax.ejb.SessionBean;
/**
* Local interface for simple/SimpleSF.
* @xdoclet-generated at 25-f�vr.-02 8:04:41
*/
public interface SimpleSFLocal
extends javax.ejb.EJBLocalObject
{
public void doSomething( ) ;
public void doSomething( int a ) ;
public void doSomething( int[] a ) ;
public void doSomething( String a ) ;
public void doSomething( String[] a ) ;
public int[] iadoSomething( ) ;
public int[] iadoSomething( int a ) ;
public int[] iadoSomething( int[] a ) ;
public int[] iadoSomething( String a ) ;
public int[] iadoSomething( String[] a ) ;
public int idoSomething( ) ;
public int idoSomething( int a ) ;
public int idoSomething( int[] a ) ;
public int idoSomething( String a ) ;
public int idoSomething( String[] a ) ;
public String[] sadoSomething( ) ;
public String[] sadoSomething( int[] a ) ;
public String[] sadoSomething( String a ) ;
public String[] sadoSomething( String[] a ) ;
public String sdoSomething( ) ;
public String sdoSomething( int a ) ;
public String sdoSomething( int[] a ) ;
public String sdoSomething( String a ) ;
public String sdoSomething( String[] a ) ;
public String[] siadoSomething( int a ) ;
}
1.1
xdoclet/core/test/src/xdoclet/retest/ref/ejb/interfaces/SimpleSFLocalHome.java
Index: SimpleSFLocalHome.java
===================================================================
/*
* Generated file - Do not edit!
*/
package xdoclet.retest.ref.ejb.interfaces;
import java.lang.*;
import javax.ejb.SessionBean;
/**
* Local home interface for simple/SimpleSF.
* @xdoclet-generated at 25-f�vr.-02 8:04:41
*/
public interface SimpleSFLocalHome
extends javax.ejb.EJBLocalHome
{
public static final String COMP_NAME="java:comp/env/ejb/simple/SimpleSFLocal";
public static final String JNDI_NAME="simple/SimpleSFLocal";
public SimpleSFLocal create() throws javax.ejb.CreateException;
public SimpleSFLocal create(int a) throws javax.ejb.CreateException;
public SimpleSFLocal create(int[] a) throws javax.ejb.CreateException;
public SimpleSFLocal create(String a) throws javax.ejb.CreateException;
public SimpleSFLocal create(String[] a) throws javax.ejb.CreateException;
public SimpleSFLocal createBlaBla() throws javax.ejb.CreateException;
public SimpleSFLocal createBlaBla(int a) throws javax.ejb.CreateException;
public SimpleSFLocal createBlaBla(int[] a) throws javax.ejb.CreateException;
public SimpleSFLocal createBlaBla(String a) throws javax.ejb.CreateException;
public SimpleSFLocal createBlaBla(String[] a) throws javax.ejb.CreateException;
}
1.1
xdoclet/core/test/src/xdoclet/retest/ref/ejb/interfaces/SimpleSFUtil.java
Index: SimpleSFUtil.java
===================================================================
/*
* Generated file - Do not edit!
*/
package xdoclet.retest.ref.ejb.interfaces;
import java.lang.*;
import javax.ejb.SessionBean;
import javax.rmi.PortableRemoteObject;
import javax.naming.NamingException;
import javax.naming.InitialContext;
import java.util.Hashtable;
/**
* Utility class for simple/SimpleSF.
* @xdoclet-generated at 25-f�vr.-02 8:04:42
*/
public class SimpleSFUtil
{
// static reference to default initial context
private static InitialContext ic = null;
// static reference to parameterised initial context
private static InitialContext pic = null;
private static SimpleSFHome home = null;
private static SimpleSFHome phome = null;
private static SimpleSFLocalHome localHome = null;
// obtain initial context
private static synchronized InitialContext getDefaultInitialContext() throws
NamingException
{
if(ic == null)
{
ic = new InitialContext();
}
return ic;
}
private static synchronized InitialContext getParameterisedInitialContext(
Hashtable environment ) throws NamingException
{
if(pic == null)
{
pic = new InitialContext(environment);
}
return pic;
}
// home interface lookup methods
/**
* Obtain remote home interface from default initial context
* @return Home interface for simple/SimpleSF.
*/
public static synchronized SimpleSFHome getHome() throws NamingException
{
if(home == null)
{
Object objRef = getDefaultInitialContext().lookup(SimpleSFHome.JNDI_NAME);
home = (SimpleSFHome)PortableRemoteObject.narrow(objRef,
SimpleSFHome.class);
}
return home;
}
/**
* Obtain remote home interface from parameterised initial context
* @param environment Parameters to use for creating initial context
* @return Home interface for simple/SimpleSF.
*/
public static synchronized SimpleSFHome getHome( Hashtable environment ) throws
NamingException
{
if(phome == null)
{
Object objRef =
getParameterisedInitialContext(environment).lookup(SimpleSFHome.JNDI_NAME);
home = (SimpleSFHome)PortableRemoteObject.narrow(objRef,
SimpleSFHome.class);
}
return home;
}
/**
* Obtain local home interface from default initial context
* @return Local home interface for simple/SimpleSF.
*/
public static synchronized SimpleSFLocalHome getLocalHome() throws NamingException
{
if(localHome == null)
{
// local homes shouldn't be narrowed, as there is no RMI involved.
localHome = (SimpleSFLocalHome)
getDefaultInitialContext().lookup(SimpleSFLocalHome.JNDI_NAME);
}
return localHome;
}
}
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel