Examples of MActivator


Examples of de.mhus.lib.MActivator

  @Override
  protected CaoApplication create(CaoConnection con, IConfig config2)
      throws CaoException {
    try {
      MActivator a = activator;
      if (a==null) a = MSingleton.instance().getActivator();
      String appClass = config.getExtracted("application_class");
      CaoApplication app = (CaoApplication) a.createObject(appClass,new Class[] {CaoConnection.class,IConfig.class}, new Object[] {con,config2});
      return app;
    } catch(Throwable t) {
      throw new CaoException(t);
    }
  }
View Full Code Here

Examples of de.mhus.lib.MActivator

      config = form.getConfig(); // load rewritten config
      // return initializeConnection((CaoConnection) getActivator().getClazz(CdbConnection.class.getCanonicalName()).getConstructor(DbDriver.class,DbConfiguration.class).newInstance(this,form));
      // return initializeConnection(new DbCaoConnection(this,form));

      // MActivator acti = getActivator();
      MActivator acti = new MActivator(getClass().getClassLoader());
      IConfig cClassPath = config.getConfig("classpath");
      if (cClassPath != null) {
        DynamicClassLoader classLoader = new DynamicClassLoader(getName(),getClass().getClassLoader());
        classLoader.doSetupFromConfig(cClassPath);
        acti = new MActivator(classLoader);
      }
     
     
      form.setActivator(acti);
     
View Full Code Here

Examples of de.mhus.lib.MActivator

  private Logo logo;
  private LayModel model;

  public Desktop(IConfig layout) throws Exception {
   
    act = new MActivator();
//    act.addMap(Login.class, "",DefaultLogin.class);
//    act.addMap(Breadcrumb.class, "",DefaultBreadcrumb.class);
//    act.addMap(Navigation.class, "",DefaultNavigation.class);
//    act.addMap(Logo.class, "",DefaultLogo.class);
//    act.addMap(Filesystem.class,"",DefaultFilesystem.class);
View Full Code Here

Examples of de.mhus.lib.MActivator

    this(null);
  }
 
  public MNlsFactory(IConfig config) {
    this.config = config;
    this.activator = new MActivator(getClass().getClassLoader());
  }
View Full Code Here

Examples of de.mhus.lib.MActivator

 
 
  private MActivator activator;
 
  public LayoutFactory() {
    this(new MActivator());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.