src/main/java/de/vandermeer/execs/cf/CF.java
public Set<Class<?>> getSubclasses(String fqcn){
		if(fqcn==null){
			return new HashSet<Class<?>>();
		}
		else if(StringUtils.startsWith(fqcn, ".") || StringUtils.endsWith(fqcn, ".")){
			return new HashSet<Class<?>>();
		}

		Class<?> clazz = null;
		try{
			clazz = Class.forName(fqcn);
		}
		catch(ClassNotFoundException ex){
			this.clear();
			this.errors.add(ex);
			return new HashSet<Class<?>>();
		}
		return getSubclasses(clazz);
	}
public Set<Class<?>> getSubclasses(String fqcn){
		if(fqcn==null){
			return new HashSet<Class<?>>();
		}
		else if(StringUtils.startsWith(fqcn, ".") || StringUtils.endsWith(fqcn, ".")){
			return new HashSet<Class<?>>();
		}

		Class<?> clazz = null;
		try{
			clazz = Class.forName(fqcn);
		}
		catch(ClassNotFoundException ex){
			this.clear();
			this.errors.add(ex);
			return new HashSet<Class<?>>();
		}
		return getSubclasses(clazz);
	}
public Set < Class < ? > > getSubclasses ( String fqcn ) { if ( fqcn == null ) { return new HashSet < Class < ? > > ( ) ; } else if ( StringUtils . startsWith ( fqcn , "." ) || StringUtils . endsWith ( fqcn , "." ) ) { return new HashSet < Class < ? > > ( ) ; } Class < ? > clazz = null ; try { clazz = Class . forName ( fqcn ) ; } catch ( ClassNotFoundException ex ) { this . clear ( ) ; this . errors . add ( ex ) ; return new HashSet < Class < ? > > ( ) ; } return getSubclasses ( clazz ) ; }
Returns all subclasses found for the given fully qualified class name.
@param fqcn fully qualified class name, e.g. package and class name
@return all found subclasses
Returns all subclasses found for the given fully qualified class name .