You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/06/13 10:27:10 UTC
svn commit: r667416 - in /myfaces/orchestra/trunk/sandbox: pom.xml
src/main/java/org/apache/myfaces/orchestra/dynaForm/metadata/impl/ejb/ClassHelperFactory.java
Author: skitching
Date: Fri Jun 13 01:27:10 2008
New Revision: 667416
URL: http://svn.apache.org/viewvc?rev=667416&view=rev
Log:
tabs to spaces
Modified:
myfaces/orchestra/trunk/sandbox/pom.xml
myfaces/orchestra/trunk/sandbox/src/main/java/org/apache/myfaces/orchestra/dynaForm/metadata/impl/ejb/ClassHelperFactory.java
Modified: myfaces/orchestra/trunk/sandbox/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/sandbox/pom.xml?rev=667416&r1=667415&r2=667416&view=diff
==============================================================================
--- myfaces/orchestra/trunk/sandbox/pom.xml (original)
+++ myfaces/orchestra/trunk/sandbox/pom.xml Fri Jun 13 01:27:10 2008
@@ -63,12 +63,12 @@
<dependency>
<!--
- - WARNING: asm versions are horribly non-compatible between major releases.
+ - WARNING: asm versions are horribly non-compatible between major releases.
- The AsmHelper class currently uses reflection to support both ASM 2.x and 3.x.
- - An alternative would be to use maven-shade-plugin to instead import a private
+ - An alternative would be to use maven-shade-plugin to instead import a private
- version of asm into this project, so that this lib does not conflict with the
- needs of apps that use it.
- -->
+ -->
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>2.2.3</version>
Modified: myfaces/orchestra/trunk/sandbox/src/main/java/org/apache/myfaces/orchestra/dynaForm/metadata/impl/ejb/ClassHelperFactory.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/sandbox/src/main/java/org/apache/myfaces/orchestra/dynaForm/metadata/impl/ejb/ClassHelperFactory.java?rev=667416&r1=667415&r2=667416&view=diff
==============================================================================
--- myfaces/orchestra/trunk/sandbox/src/main/java/org/apache/myfaces/orchestra/dynaForm/metadata/impl/ejb/ClassHelperFactory.java (original)
+++ myfaces/orchestra/trunk/sandbox/src/main/java/org/apache/myfaces/orchestra/dynaForm/metadata/impl/ejb/ClassHelperFactory.java Fri Jun 13 01:27:10 2008
@@ -20,51 +20,51 @@
public class ClassHelperFactory
{
- private static final String[] helperClasses = new String[] {
- "org.apache.myfaces.orchestra.dynaForm.metadata.impl.ejb.AsmHelper",
+ private static final String[] helperClasses = new String[] {
+ "org.apache.myfaces.orchestra.dynaForm.metadata.impl.ejb.AsmHelper",
"org.apache.myfaces.orchestra.dynaForm.metadata.impl.ejb.BcelHelper"
- };
+ };
private static final ClassHelper classHelper = newClassHelper();
- private ClassHelperFactory()
- {
- }
+ private ClassHelperFactory()
+ {
+ }
- public static ClassHelper get()
- {
- return classHelper;
- }
+ public static ClassHelper get()
+ {
+ return classHelper;
+ }
- public static ClassHelper newClassHelper()
- {
- ClassLoader cl = ClassHelperFactory.class.getClassLoader();
- for(String helperClassName: helperClasses)
- {
- try
- {
- Class<ClassHelper> c = (Class<ClassHelper>) Class.forName(helperClassName, true, cl);
- return c.newInstance();
- }
- catch (ClassNotFoundException e)
- {
- // not there
- }
- catch(IllegalAccessException e)
- {
- // not available
- }
- catch(InstantiationException e)
- {
+ public static ClassHelper newClassHelper()
+ {
+ ClassLoader cl = ClassHelperFactory.class.getClassLoader();
+ for(String helperClassName: helperClasses)
+ {
+ try
+ {
+ Class<ClassHelper> c = (Class<ClassHelper>) Class.forName(helperClassName, true, cl);
+ return c.newInstance();
+ }
+ catch (ClassNotFoundException e)
+ {
+ // not there
+ }
+ catch(IllegalAccessException e)
+ {
// not available
- }
+ }
+ catch(InstantiationException e)
+ {
+ // not available
+ }
catch(ExceptionInInitializerError e)
{
// not available
}
- }
+ }
- // last exit
- return new JavaHelper();
- }
+ // last exit
+ return new JavaHelper();
+ }
}