Package de.willuhn.util

Examples of de.willuhn.util.MultipleClassLoader


   */
  public HBCIDBServiceImpl(String driverClass) throws RemoteException
  {
    super();
    BeanService service = Application.getBootLoader().getBootable(BeanService.class);
    MultipleClassLoader cl = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader();
    this.setClassloader(cl);
    this.setClassFinder(cl.getClassFinder());
    if (driverClass == null)
      throw new RemoteException("no driver given");
    Logger.info("loading database driver: " + driverClass);
    try
    {
      Class c = cl.load(driverClass);
      this.driver = (DBSupport) service.get(c);
    }
    catch (Throwable t)
    {
      throw new RemoteException("unable to load database driver " + driverClass,t);
View Full Code Here


  private KeyFormat getFormat() throws RemoteException
  {
    try
    {
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      MultipleClassLoader loader = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader();
     
      // Als Default nehmen wir das Eigenformat
      String s = settings.getString(getID() + ".format",HBCI4JavaFormat.class.getName());
      Class c = loader.load(s);
      return (KeyFormat) service.get(c);
    }
    catch (RemoteException re)
    {
      throw re;
View Full Code Here

  {
    ArrayList list = new ArrayList();
    try
    {
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      MultipleClassLoader loader = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader();
      Class[] classes = loader.getClassFinder().findImplementors(KeyFormat.class);
      for (Class c:classes)
      {
        try
        {
          KeyFormat format = (KeyFormat) service.get(c);
View Full Code Here

  {
    ReminderMessage msg           = (ReminderMessage) message;
    Map<String,Serializable> data = (Map<String,Serializable>) msg.getData();
    Date termin                   = msg.getDate();

    MultipleClassLoader loader = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader();
    DBService service          = Settings.getDBService();

    // 1. der zu duplizierende Auftrag
    Class type = loader.load((String) data.get("order.class"));
    String id  = (String) data.get("order.id");

    Logger.debug("checking, if order " + type.getSimpleName() + ":" + id + " has to be cloned for " + termin);

    // 2. Checken, ob der Auftrag bereits erzeugt wurde. Das kann z.Bsp. der
View Full Code Here

    if (providers == null)
    {
      providers = new LinkedList<Class<ForecastProvider>>();
      try
      {
        MultipleClassLoader loader = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader();
        Class<ForecastProvider>[] classes = loader.getClassFinder().findImplementors(ForecastProvider.class);
        for (Class<ForecastProvider> c:classes)
        {
          providers.add(c);
        }
      }
View Full Code Here

   * @return der Schedule-Provider oder NULL, wenn er nicht existiert.
   */
  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)
View Full Code Here

TOP

Related Classes of de.willuhn.util.MultipleClassLoader

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.