a package name prefix that represents the prefix that should be removed from the class name passed to loadclass before attempting to convert the class 's package name to a sub-directory off the specified compiled directory . for consistency this setting also causes the class loader to enfore that all the package name of classes loaded by this classloader start with the specified package name prefix . following is an illustration of how is parameter may be used . assume we have compiled files in a directory / project/foobar/src , lets also assume that we want to reliably restrict this class loader to only load compiled files in the folder / project/foobar/src / foobar/controller . so for so security we set the compiled directory of this classoader to / project/foobar/src / foobar/controller . now if we ask this classloader to load the class foobar.controller.helloworld it would unsuccessfully try to look for a compiled file named : '' / project/foobar/src/foobar/controller/foobar/controller/helloworld.class '' computed using : compileddir = '' / project/foobar/src / foobar/controller '' + inferredcompiledfilepath = '' / foobar/controller/helloworld.class '' to get the correct behaviour in the above example the packagenameprefix of this class loader must be set to `` foobar.controller '' . the prefix `` foobar.controller '' is then removed from the package name of class before using it to compute the compiled file path for the class foobar.controller.helloworld . concode_field_sep File _oCompiledDirectory concode_elem_sep String _sPackageNamePrefix concode_field_sep void setCompiledDirectory concode_elem_sep String getPackageNamePrefix concode_elem_sep File getCompiledDirectory concode_elem_sep ResourceDef getResourceDef concode_elem_sep Set findClassNames concode_elem_sep void findClassNames concode_elem_sep String getClassName concode_elem_sep ClassDef getClassDef concode_elem_sep String getFileName
void function ( String arg0 ) { if ( arg0 != null && arg0 . endsWith ( "srini_string" ) ) { throw new IllegalArgumentException ( "srini_string" ) ; } _sPackageNamePrefix = arg0 ; }