Package de.willuhn.util

Examples of de.willuhn.util.ClassFinder


    if (umsatzRewriters == null)
    {
      umsatzRewriters = new HashMap<String,Class<UmsatzRewriter>>();
      try
      {
        ClassFinder finder = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader().getClassFinder();
        Class<UmsatzRewriter>[] classes = finder.findImplementors(UmsatzRewriter.class);
        for (Class<UmsatzRewriter> c:classes)
        {
          try
          {
            UmsatzRewriter u = service.get(c);
View Full Code Here


    presets = new ArrayList<Reader>();
    try
    {
      Logger.info("searching for reader presets");
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      ClassFinder finder = Application.getPluginLoader().getPlugin(HBCI.class).getManifest().getClassLoader().getClassFinder();
      Class<Reader>[] found = finder.findImplementors(Reader.class);
      for (Class<Reader> r:found)
      {
        try
        {
          presets.add(service.get(r));
View Full Code Here

      try
      {
        Logger.info("loading addressbooks");
       
        BeanService service = Application.getBootLoader().getBootable(BeanService.class);
        ClassFinder finder = Application.getPluginLoader().getPlugin(HBCI.class).getManifest().getClassLoader().getClassFinder();
        Class[] found = finder.findImplementors(Addressbook.class);
        ArrayList list = new ArrayList();

        // Uns selbst tun wir immer zuerst rein.
        // Damit stehen wir immer oben in der Liste
        list.add(this);
View Full Code Here

  {
    BeanService service = Application.getBootLoader().getBootable(BeanService.class);
    List<T> l = new ArrayList<T>();
    try
    {
      ClassFinder finder = Application.getPluginLoader().getPlugin(HBCI.class).getManifest().getClassLoader().getClassFinder();
      Class<T>[] list = finder.findImplementors(type);
      if (list == null || list.length == 0)
        throw new ClassNotFoundException();

      // Initialisieren
      for (Class<T> c:list)
View Full Code Here

    // Wir checken, fuer welche Datentypen wir einen CSV-Treiber haben
    List<IOFormat> formats = new ArrayList<IOFormat>();
    try
    {
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      ClassFinder finder = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader().getClassFinder();
      Class<Format>[] classes = finder.findImplementors(Format.class);
      for (Class<Format> c:classes)
      {
        try
        {
          Format f = service.get(c);
View Full Code Here

    passportsByName  = new Hashtable();

    try {
      Logger.info("searching for available passports");
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      ClassFinder finder = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader().getClassFinder();
      Class[] found = finder.findImplementors(Passport.class);
      for (Class c:found)
      {
        try {
          Passport p = (Passport) service.get(c);
          Application.getCallback().getStartupMonitor().setStatusText("init passport " + p.getName());
View Full Code Here

   */
  public static synchronized ScheduleProvider getScheduleProvider(Class<? extends HibiscusDBObject> type)
  {
    BeanService service        = Application.getBootLoader().getBootable(BeanService.class);
    MultipleClassLoader loader = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader();
    ClassFinder finder         = loader.getClassFinder();
     
    try
    {
      Class<ScheduleProvider>[] classes = finder.findImplementors(ScheduleProvider.class);
      for (Class<ScheduleProvider> c:classes)
      {
        try
        {
          // Checken, ob der konkrete Typ passt
View Full Code Here

TOP

Related Classes of de.willuhn.util.ClassFinder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.