Java Code Examples for org.apache.commons.lang3.ClassUtils#getPackageName()
The following examples show how to use
org.apache.commons.lang3.ClassUtils#getPackageName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GeneratorSetResources.java From tcases with MIT License | 6 votes |
/** * Returns the {@link IGeneratorSet} defined by the given JSON resource. */ public IGeneratorSet readJson( String resource) { IGeneratorSet generatorSet = null; InputStream stream = null; stream = class_.getResourceAsStream( resource); if( stream == null) { throw new RuntimeException ( "Can't find resource=" + ClassUtils.getPackageName( class_) + "." + resource); } try( GeneratorSetJsonReader reader = new GeneratorSetJsonReader( stream)) { generatorSet = reader.getGeneratorSet(); } return generatorSet; }
Example 2
Source File: SystemInputResources.java From tcases with MIT License | 6 votes |
/** * Returns the {@link SystemInputDef} defined by the given JSON resource. */ public SystemInputDef readJson( String resource) { SystemInputDef systemInputDef = null; InputStream stream = null; stream = class_.getResourceAsStream( resource); if( stream == null) { throw new RuntimeException ( "Can't find resource=" + ClassUtils.getPackageName( class_) + "." + resource); } try( SystemInputJsonReader reader = new SystemInputJsonReader( stream)) { systemInputDef = reader.getSystemInputDef(); } return systemInputDef; }
Example 3
Source File: SystemTestResources.java From tcases with MIT License | 6 votes |
/** * Returns the {@link SystemTestDef} defined by the given JSON resource. */ public SystemTestDef readJson( String resource) { SystemTestDef systemTestDef = null; InputStream stream = null; stream = class_.getResourceAsStream( resource); if( stream == null) { throw new RuntimeException ( "Can't find resource=" + ClassUtils.getPackageName( class_) + "." + resource); } try( SystemTestJsonReader reader = new SystemTestJsonReader( stream)) { systemTestDef = reader.getSystemTestDef(); } return systemTestDef; }
Example 4
Source File: ClassUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 返回PackageName */ public static String getPackageName(final Class<?> cls) { return ClassUtils.getPackageName(cls); }
Example 5
Source File: ClassUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 返回PackageName */ public static String getPackageName(final String className) { return ClassUtils.getPackageName(className); }
Example 6
Source File: ClassUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 返回PackageName */ public static String getPackageName(final Class<?> cls) { return ClassUtils.getPackageName(cls); }
Example 7
Source File: ClassUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 返回PackageName */ public static String getPackageName(final String className) { return ClassUtils.getPackageName(className); }
Example 8
Source File: ClassUtil.java From j360-dubbo-app-all with Apache License 2.0 | 4 votes |
/** * 返回PackageName */ public static String getPackageName(final Class<?> cls) { return ClassUtils.getPackageName(cls); }
Example 9
Source File: ClassUtil.java From j360-dubbo-app-all with Apache License 2.0 | 4 votes |
/** * 返回PackageName */ public static String getPackageName(final String className) { return ClassUtils.getPackageName(className); }