ASF Bugzilla – Attachment 12623 Details for
Bug 20758
Memory Leak in Classloader/Manager deploy/undeploy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Singleton Test Class
BigSingleton.java (text/plain), 1.41 KB, created by
Steve Menke
on 2004-09-03 02:12:25 UTC
(
hide
)
Description:
Singleton Test Class
Filename:
MIME Type:
Creator:
Steve Menke
Created:
2004-09-03 02:12:25 UTC
Size:
1.41 KB
patch
obsolete
>/* > * Copyright (c) 2004, BodyMedia Inc. All rights reserved. > * $Workfile:File Header.java$ > * $Revision:2$ > * $Date:2/24/2004 3:06:28 PM$ > * $Author:Eric Hsiung$ > */ > >import java.lang.reflect.InvocationTargetException; > >public class BigSingleton { > > private static BigSingleton self; > > private BigClass bigClass; > > private BigSingleton() { > > try { > bigClass = (BigClass) (Class.forName("BigClass").getConstructor(null).newInstance(null)); > } catch (InstantiationException e) { > e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. > } catch (IllegalAccessException e) { > e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. > } catch (InvocationTargetException e) { > e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. > } catch (NoSuchMethodException e) { > e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. > } catch (ClassNotFoundException e) { > e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. > } > } > > public static BigSingleton getInstance() { > if (self == null) { > self = new BigSingleton(); > } > return self; > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 20758
:
12622
| 12623 |
12624
|
12638
|
12639