public static void main(String[] args) { FeatureHelper helper = FeatureHelper.instance(); System.out.println("---"); // document separator for Joelib debug messages for (Object feature : helper.getNativeFeatures()) { System.out.println("- :java_class: \"" + feature.toString() + "\""); // methods for accessing feature descriptions e.g. with // FeatureFactory.instance().getFeature(feature.toString()).getDescription().getText() or // FeatureFactory.instance().getFeature(feature.toString()).getDescription().getHtml() // are defunct } }
public LogP() { if (logger.isDebugEnabled()) { logger.debug("Initialize " + this.getClass().getName()); } descInfo = FeatureHelper.generateFeatureInfo( this.getClass(), BasicFeatureInfo.TYPE_NO_COORDINATES, null, "joelib2.feature.result.DoubleResult"); }
private static String[] buildDependencyTree() { // ensure, that the class loader has all relevant classes loaded BasicAromaticityTyper.instance(); BasicArrayHelper.instance(); AtomPairTypeHolder.instance(); BasicAtomTypeConversionHolder.instance(); BasicAtomTyper.instance(); BasicBatchScriptReplacer.instance(); BibitemHolder.instance(); // DatabaseConnection.instance(); DecimalFormatHelper.instance(); BasicElementHolder.instance(); ExternalFactory.instance(); FeatureFactory.instance(); FeatureHelper.instance(); BasicBatchFileUtilities.instance(); FilterFactory.instance(); // try // { // GhemicalInterface.instance(); // } // catch(Exception e){ // // } BasicGroupContributionHolder.instance(); BasicIOTypeHolder.instance(); BasicIsotopeHolder.instance(); HelperMethods.instance(); BasicLineArrayHelper.instance(); BasicLineMatrixHelper.instance(); BasicMatrixHelper.instance(); // Avoid an instance, because this will add a X-server dependency for linux systems // Mol2Image.instance(); // Avoid an instance, because this will add a X-server dependency for linux systems // MolFileChooser.instance(); try { BasicMoleculeCacheHolder.instance(); } catch (Exception e1) { // TODO Auto-generated catch block e1.printStackTrace(); } ProcessFactory.instance(); BasicPropertyHolder.instance(); BasicProtonationModel.instance(); BasicResidueData.instance(); BasicResourceLoader.instance(); ResultFactory.instance(); BasicRotorRulesHolder.instance(); // Viewer.instance(); // show all loaded classes in the class loader final ClassLoader[] loaders = ClassScope.getCallerClassLoaderTree(); final Class[] classes = ClassScope.getLoadedClasses(loaders); String[] cnames = new String[classes.length]; Vector<String> results = new Vector<String>(classes.length); StringBuffer buffer; dependencyVersionHash = new Hashtable<String, int[]>(classes.length); for (int c = 0; c < classes.length; c++) { buffer = new StringBuffer(300); cnames[c] = classes[c].getName(); // System.out.println ("[" + classes[c].getName () + "]:"); // System.out.println (" loaded by [" + classes[c].getClassLoader // ().getClass ().getName () + "]"); // System.out.println (" from [" + ClassScope.getClassLocation // (classes[c]) // + "]"); recurseInto(classes[c], buffer, 0, results); } String[] resultsArr = new String[results.size()]; for (int i = 0; i < resultsArr.length; i++) { resultsArr[i] = results.get(i); } return resultsArr; }