Update of /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/lookup/resources
In directory
sc8-pr-cvs1:/tmp/cvs-serv15392/xdoclet/modules/ejb/src/xdoclet/modules/ejb/lookup/resources
Modified Files:
lookup.xdt
Log Message:
Fixed XDT-325 by removing all imports and using FQCN everywhere.
Index: lookup.xdt
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/lookup/resources/lookup.xdt,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** lookup.xdt 21 Nov 2002 17:26:41 -0000 1.6
--- lookup.xdt 24 Feb 2003 19:24:24 -0000 1.7
***************
*** 4,18 ****
package <XDtPackage:packageOf><XDtEjbUtilObj:utilClass/></XDtPackage:packageOf>;
- import javax.rmi.PortableRemoteObject;
- import javax.naming.NamingException;
- import javax.naming.InitialContext;
-
- import java.util.Hashtable;
-
- <XDtConfig:ifConfigParamEquals paramName="includeGUID" value="true">
- import java.net.InetAddress;
- import java.security.SecureRandom;
- </XDtConfig:ifConfigParamEquals>
-
/**
* <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="utility_class_for" arguments="<XDtEjb:ejbName/>"/>
--- 4,7 ----
***************
*** 39,51 ****
* @return <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="home_interface_for"
arguments="<XDtEjb:ejbName/>"/> <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_lookup_using"
arguments="<XDtEjbUtilObj:lookupKind/>"/>
*/
! public static <XDtEjbHome:homeInterface type="remote"/> getHome() throws
NamingException
{
<XDtConfig:ifConfigParamEquals paramName="cacheHomes" value="true">
if (cachedRemoteHome == null) {
// <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_obtain_ic"/>
! InitialContext initialContext = new InitialContext();
try {
java.lang.Object objRef =
initialContext.lookup(<XDtEjbHome:homeInterface
type="remote"/>.<XDtEjbUtilObj:lookupKind/>);
! cachedRemoteHome = (<XDtEjbHome:homeInterface type="remote"/>)
PortableRemoteObject.narrow(objRef, <XDtEjbHome:homeInterface type="remote"/>.class);
} finally {
initialContext.close();
--- 28,40 ----
* @return <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="home_interface_for"
arguments="<XDtEjb:ejbName/>"/> <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_lookup_using"
arguments="<XDtEjbUtilObj:lookupKind/>"/>
*/
! public static <XDtEjbHome:homeInterface type="remote"/> getHome() throws
javax.naming.NamingException
{
<XDtConfig:ifConfigParamEquals paramName="cacheHomes" value="true">
if (cachedRemoteHome == null) {
// <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_obtain_ic"/>
! javax.naming.InitialContext initialContext = new
javax.naming.InitialContext();
try {
java.lang.Object objRef =
initialContext.lookup(<XDtEjbHome:homeInterface
type="remote"/>.<XDtEjbUtilObj:lookupKind/>);
! cachedRemoteHome = (<XDtEjbHome:homeInterface type="remote"/>)
javax.rmi.PortableRemoteObject.narrow(objRef, <XDtEjbHome:homeInterface
type="remote"/>.class);
} finally {
initialContext.close();
***************
*** 56,63 ****
<XDtConfig:ifConfigParamNotEquals paramName="cacheHomes" value="true">
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_obtain_ic"/>
! InitialContext initialContext = new InitialContext();
try {
java.lang.Object objRef = initialContext.lookup(<XDtEjbHome:homeInterface
type="remote"/>.<XDtEjbUtilObj:lookupKind/>);
! return (<XDtEjbHome:homeInterface type="remote"/>)
PortableRemoteObject.narrow(objRef, <XDtEjbHome:homeInterface type="remote"/>.class);
} finally {
initialContext.close();
--- 45,52 ----
<XDtConfig:ifConfigParamNotEquals paramName="cacheHomes" value="true">
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_obtain_ic"/>
! javax.naming.InitialContext initialContext = new javax.naming.InitialContext();
try {
java.lang.Object objRef = initialContext.lookup(<XDtEjbHome:homeInterface
type="remote"/>.<XDtEjbUtilObj:lookupKind/>);
! return (<XDtEjbHome:homeInterface type="remote"/>)
javax.rmi.PortableRemoteObject.narrow(objRef, <XDtEjbHome:homeInterface
type="remote"/>.class);
} finally {
initialContext.close();
***************
*** 71,81 ****
* @return <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="home_interface_for"
arguments="<XDtEjb:ejbName/>"/> <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_lookup_using"
arguments="<XDtEjbUtilObj:lookupKind/>"/>
*/
! public static <XDtEjbHome:homeInterface type="remote"/> getHome( Hashtable
environment ) throws NamingException
{
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_obtain_ic"/>
! InitialContext initialContext = new InitialContext(environment);
try {
java.lang.Object objRef = initialContext.lookup(<XDtEjbHome:homeInterface
type="remote"/>.<XDtEjbUtilObj:lookupKind/>);
! return (<XDtEjbHome:homeInterface type="remote"/>)
PortableRemoteObject.narrow(objRef, <XDtEjbHome:homeInterface type="remote"/>.class);
} finally {
initialContext.close();
--- 60,70 ----
* @return <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="home_interface_for"
arguments="<XDtEjb:ejbName/>"/> <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_lookup_using"
arguments="<XDtEjbUtilObj:lookupKind/>"/>
*/
! public static <XDtEjbHome:homeInterface type="remote"/> getHome( Hashtable
environment ) throws javax.naming.NamingException
{
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_obtain_ic"/>
! javax.naming.InitialContext initialContext = new
javax.naming.InitialContext(environment);
try {
java.lang.Object objRef = initialContext.lookup(<XDtEjbHome:homeInterface
type="remote"/>.<XDtEjbUtilObj:lookupKind/>);
! return (<XDtEjbHome:homeInterface type="remote"/>)
javax.rmi.PortableRemoteObject.narrow(objRef, <XDtEjbHome:homeInterface
type="remote"/>.class);
} finally {
initialContext.close();
***************
*** 89,93 ****
* @return <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="local_home_interface_for" arguments="<XDtEjb:ejbName/>"/> <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_lookup_using"
arguments="<XDtEjbUtilObj:lookupKind/>"/>
*/
! public static <XDtEjbHome:homeInterface type="local"/> getLocalHome() throws
NamingException
{
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_localhome_not_narrowed"/>
--- 78,82 ----
* @return <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="local_home_interface_for" arguments="<XDtEjb:ejbName/>"/> <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_lookup_using"
arguments="<XDtEjbUtilObj:lookupKind/>"/>
*/
! public static <XDtEjbHome:homeInterface type="local"/> getLocalHome() throws
javax.naming.NamingException
{
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_localhome_not_narrowed"/>
***************
*** 95,99 ****
if (cachedLocalHome == null) {
// <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_obtain_ic"/>
! InitialContext initialContext = new InitialContext();
try {
cachedLocalHome = (<XDtEjbHome:homeInterface type="local"/>)
initialContext.lookup(<XDtEjbHome:homeInterface
type="local"/>.<XDtEjbUtilObj:lookupKind/>);
--- 84,88 ----
if (cachedLocalHome == null) {
// <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages" resource="util_obtain_ic"/>
! javax.naming.InitialContext initialContext = new
javax.naming.InitialContext();
try {
cachedLocalHome = (<XDtEjbHome:homeInterface type="local"/>)
initialContext.lookup(<XDtEjbHome:homeInterface
type="local"/>.<XDtEjbUtilObj:lookupKind/>);
***************
*** 106,110 ****
<XDtConfig:ifConfigParamNotEquals paramName="cacheHomes" value="true">
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_obtain_ic"/>
! InitialContext initialContext = new InitialContext();
try {
return (<XDtEjbHome:homeInterface type="local"/>)
initialContext.lookup(<XDtEjbHome:homeInterface
type="local"/>.<XDtEjbUtilObj:lookupKind/>);
--- 95,99 ----
<XDtConfig:ifConfigParamNotEquals paramName="cacheHomes" value="true">
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_obtain_ic"/>
! javax.naming.InitialContext initialContext = new javax.naming.InitialContext();
try {
return (<XDtEjbHome:homeInterface type="local"/>)
initialContext.lookup(<XDtEjbHome:homeInterface
type="local"/>.<XDtEjbUtilObj:lookupKind/>);
***************
*** 124,128 ****
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_guid_securerandom"/>
! private static final SecureRandom seeder = new SecureRandom();
/**
--- 113,117 ----
// <XDtI18n:getString bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_guid_securerandom"/>
! private static final java.security.SecureRandom seeder = new
java.security.SecureRandom();
/**
***************
*** 135,142 ****
StringBuffer tmpBuffer = new StringBuffer(16);
if (hexServerIP == null) {
! InetAddress localInetAddress = null;
try {
// <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_guid_localinetaddress"/>
! localInetAddress = InetAddress.getLocalHost();
}
catch (java.net.UnknownHostException uhe) {
--- 124,131 ----
StringBuffer tmpBuffer = new StringBuffer(16);
if (hexServerIP == null) {
! java.net.InetAddress localInetAddress = null;
try {
// <XDtI18n:getString
bundle="xdoclet.modules.ejb.XDocletModulesEjbMessages"
resource="util_guid_localinetaddress"/>
! localInetAddress = java.net.InetAddress.getLocalHost();
}
catch (java.net.UnknownHostException uhe) {
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel