[jboss-cvs] JBossAS SVN: r84347 - projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Feb 17 23:48:33 EST 2009
Author: ldelima at redhat.com
Date: 2009-02-17 23:48:33 -0500 (Tue, 17 Feb 2009)
New Revision: 84347
Modified:
projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/J2EE_Reference_Introduction.po
Log:
translation ongoing
Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/J2EE_Reference_Introduction.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/J2EE_Reference_Introduction.po 2009-02-18 04:47:22 UTC (rev 84346)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/J2EE_Reference_Introduction.po 2009-02-18 04:48:33 UTC (rev 84347)
@@ -9,7 +9,7 @@
"Project-Id-Version: J2EE_Reference_Introduction\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-20 02:37+0000\n"
-"PO-Revision-Date: 2009-02-18 14:46+1000\n"
+"PO-Revision-Date: 2009-02-18 14:48+1000\n"
"Last-Translator: Leticia de Lima <ldelima at redhat.com>\n"
"Language-Team: Brazilian Portuguese <en at li.org>\n"
"MIME-Version: 1.0\n"
@@ -1698,6 +1698,13 @@
" }\n"
"}"
msgstr ""
+"class <C,L1> {\n"
+" void f() {\n"
+" <Spoofed, L1><superscript>L1</superscript>x = <Delegated, "
+"L2><superscript>L2</superscript>\n"
+" x.secret_value = 1; // Should not be allowed\n"
+" }\n"
+"}"
#. Tag: programlisting
#: J2EE_Reference_Introduction.xml:434
@@ -1708,6 +1715,10 @@
" }\n"
"}"
msgstr ""
+"class <Delegated,L2> {\n"
+" static <Spoofed, L2><superscript>L3</superscript> g() {...}\n"
+" }\n"
+"}"
#. Tag: programlisting
#: J2EE_Reference_Introduction.xml:435
@@ -1717,6 +1728,9 @@
" public int secret_value;\n"
"}"
msgstr ""
+"class <Spoofed, L1> {\n"
+" public int secret_value;\n"
+"}"
#. Tag: programlisting
#: J2EE_Reference_Introduction.xml:436
@@ -1726,6 +1740,9 @@
" private int secret_value;\n"
"}"
msgstr ""
+"class <Spoofed, L2> {\n"
+" private int secret_value;\n"
+"}"
#. Tag: para
#: J2EE_Reference_Introduction.xml:437
@@ -1866,6 +1883,62 @@
" }\n"
"}"
msgstr ""
+"/** \n"
+" * An example of a LinkageError due to classes being defined by more\n"
+" * than one class loader in a non-standard class loading environment.\n"
+" *\n"
+" * @author Scott.Stark at jboss.orgn\n"
+" * @version $Revision: 1.1 $\n"
+" */\n"
+"public class ExLE\n"
+"{\n"
+" public static void main(String[] args) \n"
+" throws Exception\n"
+" {\n"
+" ChapterExRepository.init(ExLE.class);\n"
+"\n"
+" String chapDir = System.getProperty(\"j2eechapter.dir\");\n"
+" Logger ucl0Log = Logger.getLogger(\"UCL0\");\n"
+" File jar0 = new File(chapDir+\"/j0.jar\");\n"
+" ucl0Log.info(\"jar0 path: \"+jar0.toString());\n"
+" URL[] cp0 = {jar0.toURL()};\n"
+" Ex0URLClassLoader ucl0 = new Ex0URLClassLoader(cp0);\n"
+" Thread.currentThread().setContextClassLoader(ucl0);\n"
+" <emphasis role=\"bold\">Class ctxClass1 = ucl0.loadClass(\"org.jboss."
+"book.jmx.ex0.ExCtx\");</emphasis>\n"
+" <emphasis role=\"bold\">Class obj2Class1 = ucl0.loadClass(\"org."
+"jboss.book.jmx.ex0.ExObj2\");</emphasis>\n"
+" StringBuffer buffer = new StringBuffer(\"ExCtx Info\");\n"
+" Debug.displayClassInfo(ctxClass1, buffer, false);\n"
+" ucl0Log.info(buffer.toString());\n"
+" buffer.setLength(0);\n"
+" buffer.append(\"ExObj2 Info, UCL0\");\n"
+" Debug.displayClassInfo(obj2Class1, buffer, false);\n"
+" ucl0Log.info(buffer.toString());\n"
+" \n"
+" File jar1 = new File(chapDir+\"/j1.jar\");\n"
+" Logger ucl1Log = Logger.getLogger(\"UCL1\");\n"
+" ucl1Log.info(\"jar1 path: \"+jar1.toString());\n"
+" URL[] cp1 = {jar1.toURL()};\n"
+" Ex0URLClassLoader ucl1 = new Ex0URLClassLoader(cp1);\n"
+" <emphasis role=\"bold\">Class obj2Class2 = ucl1.loadClass(\"org."
+"jboss.book.jmx.ex0.ExObj2\");</emphasis>\n"
+" buffer.setLength(0);\n"
+" buffer.append(\"ExObj2 Info, UCL1\");\n"
+" Debug.displayClassInfo(obj2Class2, buffer, false);\n"
+" ucl1Log.info(buffer.toString());\n"
+" \n"
+" <emphasis role=\"bold\">ucl0.setDelegate(ucl1);</emphasis>\n"
+" try {\n"
+" ucl0Log.info(\"Try ExCtx.newInstance()\");\n"
+" <emphasis role=\"bold\">Object ctx0 = ctxClass1.newInstance();</"
+"emphasis>\n"
+" ucl0Log.info(\"ExCtx.ctor succeeded, ctx0: \"+ctx0);\n"
+" } catch(Throwable e) {\n"
+" ucl0Log.error(\"ExCtx.ctor failed\", e);\n"
+" }\n"
+" }\n"
+"}"
#. Tag: programlisting
#: J2EE_Reference_Introduction.xml:448
@@ -1933,6 +2006,57 @@
" }\n"
"}"
msgstr ""
+" *\n"
+" * @author Scott.Stark at jboss.org\n"
+" * @version $Revision: 1.1 $\n"
+" */\n"
+"public class Ex0URLClassLoader extends URLClassLoader\n"
+"{\n"
+" private static Logger log = Logger.getLogger(Ex0URLClassLoader.class);\n"
+" private Ex0URLClassLoader delegate;\n"
+"\n"
+" public Ex0URLClassLoader(URL[] urls)\n"
+" {\n"
+" super(urls);\n"
+" }\n"
+" \n"
+" void setDelegate(Ex0URLClassLoader delegate)\n"
+" {\n"
+" this.delegate = delegate;\n"
+" }\n"
+" \n"
+" protected synchronized Class loadClass(String name, boolean resolve)\n"
+" throws ClassNotFoundException\n"
+" {\n"
+" Class clazz = null;\n"
+" if (delegate != null) {\n"
+" log.debug(Integer.toHexString(hashCode()) +\n"
+" \"; Asking delegate to loadClass: \" + name);\n"
+" clazz = delegate.loadClass(name, resolve);\n"
+" log.debug(Integer.toHexString(hashCode()) +\n"
+" \"; Delegate returned: \"+clazz);\n"
+" } else {\n"
+" log.debug(Integer.toHexString(hashCode()) + \n"
+" \"; Asking super to loadClass: \"+name);\n"
+" clazz = super.loadClass(name, resolve);\n"
+" log.debug(Integer.toHexString(hashCode()) + \n"
+" \"; Super returned: \"+clazz);\n"
+" }\n"
+" return clazz;\n"
+" }\n"
+"\n"
+" protected Class findClass(String name)\n"
+" throws ClassNotFoundException\n"
+" {\n"
+" Class clazz = null;\n"
+" log.debug(Integer.toHexString(hashCode()) + \n"
+" \"; Asking super to findClass: \"+name);\n"
+" clazz = super.findClass(name);\n"
+" log.debug(Integer.toHexString(hashCode()) + \n"
+" \"; Super returned: \"+clazz);\n"
+" return clazz;\n"
+" }\n"
+"}"
#. Tag: para
#: J2EE_Reference_Introduction.xml:449
More information about the jboss-cvs-commits
mailing list