KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > marshall > RegionBasedMarshallingTestBase


1 package org.jboss.cache.marshall;
2
3 import junit.framework.TestCase;
4
5 public abstract class RegionBasedMarshallingTestBase extends TestCase
6 {
7    protected static final String JavaDoc ADDRESS_CLASSNAME = "org.jboss.cache.marshall.data.Address";
8    protected static final String JavaDoc PERSON_CLASSNAME = "org.jboss.cache.marshall.data.Person";
9
10    protected ClassLoader JavaDoc getClassLoader() throws Exception JavaDoc
11    {
12       String JavaDoc[] includesClasses = {PERSON_CLASSNAME, ADDRESS_CLASSNAME};
13       String JavaDoc [] excludesClasses = {};
14       ClassLoader JavaDoc cl = Thread.currentThread().getContextClassLoader();
15       return new SelectedClassnameClassLoader(includesClasses, excludesClasses, cl);
16    }
17
18
19 }
20
Popular Tags