KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > util > classhelper > ClassHelper


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.util.classhelper;
13
14 public abstract class ClassHelper {
15
16     private static ClassHelper impl =
17  
18     new com.versant.core.util.classhelper.jdk12.ClassHelperImpl();
19  
20  
21     
22     public static ClassHelper get() {
23         return impl;
24     }
25
26     public abstract Class JavaDoc classForName(String JavaDoc clazz, boolean validate,
27                                        ClassLoader JavaDoc loader)
28         throws ClassNotFoundException JavaDoc;
29
30     public abstract ClassLoader JavaDoc getContextClassLoader(Thread JavaDoc thread);
31
32     public abstract ClassLoader JavaDoc getSystemClassLoader();
33
34     public abstract void setAccessible(java.lang.reflect.Field JavaDoc field, boolean value);
35
36     public abstract void setAccessible(java.lang.reflect.Constructor JavaDoc ctor, boolean value);
37
38     public abstract Object JavaDoc getFieldValue(java.lang.reflect.Field JavaDoc field, Object JavaDoc obj) throws IllegalAccessException JavaDoc;
39 }
40
Popular Tags