Examples of createInstance()


Examples of org.jfree.chart.axis.PeriodAxisLabelInfo.createInstance()

     */
    public void testCreateInstance() {
        TimeZone zone = TimeZone.getTimeZone("GMT");
        PeriodAxisLabelInfo info = new PeriodAxisLabelInfo(Day.class,
                new SimpleDateFormat("d"));
        Day d = (Day) info.createInstance(new Date(0L), zone, Locale.UK);
        assertEquals(new Day(1, 1, 1970), d);

        info = new PeriodAxisLabelInfo(Year.class, new SimpleDateFormat("YYYY"));
        Year y = (Year) info.createInstance(new Date(0L), zone, Locale.UK);
        assertEquals(new Year(1970), y);
View Full Code Here

Examples of org.jinterop.dcom.core.JIComServer.createInstance()

      comServer = new JIComServer(JIProgId.valueOf(applId), server,
          session);
    }

    // Instantiate the COM Server
    setDispatch(toDispatch(comServer.createInstance()));
  }

  /**
   * Закрытие DCOM сессии.
   *
 
View Full Code Here

Examples of org.lilyproject.repository.spi.RepositoryDecoratorFactory.createInstance()

            String decoratorName = configuredDecorators.get(i);
            RepositoryDecoratorFactory factory = decorators.get(decoratorName);
            if (factory == null) {
                throw new RuntimeException("No repository decorator registered with the name '" + decoratorName + "'");
            }
            nextInChain = factory.createInstance(nextInChain);
            chain.addEntryAtStart(decoratorName, nextInChain);
        }

        return chain;
    }
View Full Code Here

Examples of org.metaworks.ObjectType.createInstance()

          EventHandler theEventHandler = getScopeActivity().getEventHandlers()[handlerIndex];
          //
         
          eventHandlerType = new ObjectType(EventHandler.class);
         
          ObjectInstance eventHandlerInstance = (ObjectInstance)eventHandlerType.createInstance();
          eventHandlerInstance.setObject(theEventHandler);
         
          InputForm eventHandlerInputForm = new InputForm(eventHandlerType){
            public void onSaveOK(Instance rec, JDialog dialog){
             
View Full Code Here

Examples of org.metaworks.Type.createInstance()

              public void windowGainedFocus(WindowEvent e) {
               
                try {

                  final Type deployOrNot = new Type("Select forms to deploy");
                  final Instance deployInstance = deployOrNot.createInstance();

                  new ForLoop(){

                    public void logic(Object target) {
                      OpenedForm openedForm = (OpenedForm) target;
View Full Code Here

Examples of org.milyn.SmooksFactory.createInstance()

    }

    public void start() throws Exception {
        final SmooksFactory smooksFactory = (SmooksFactory) camelContext.getRegistry().lookup(SmooksFactory.class.getName());
        if (smooksFactory != null) {
            smooks = smooksFactory.createInstance(smooksConfig);
        } else {
            smooks = new Smooks(smooksConfig);
        }
    }
View Full Code Here

Examples of org.milyn.SmooksOSGIFactory.createInstance()

    {
        try
        {
          final SmooksFactory smooksOSGIFactory = new SmooksOSGIFactory(context.getBundle());
          final String config = (String) context.getBundle().getHeaders().get("Smooks-Config");
          smooks = smooksOSGIFactory.createInstance(config);
          performFiltering(context);
        }
        catch (Exception e)
        {
            e.printStackTrace();
View Full Code Here

Examples of org.olat.core.gui.control.generic.portal.PortalImpl.createInstance()

    PortalImpl p = (PortalImpl) portals.get(portalName);
    if (p == null) {
      Tracing.logWarn("Could not create portal with name::" + portalName, PortalFactory.class);
      return null;
    }
    return p.createInstance(wControl, ureq);
  }
 
}
View Full Code Here

Examples of org.openbp.jaspira.plugin.PluginMgr.createInstance()

    // Load all skin data and initialize the icon model accordingly
    SkinMgr.getInstance().load();

    // Add these plugins first, they will create menu items for the global menu
    pm.createInstance(ErrorDialogPlugin.class, this);

    // Try to connect to the server
    // By default, use an anonymous login
    ServerConnection connection = ServerConnection.getInstance();
    connection.setLoginInfo(new ClientLoginInfo("Anonymous", null));
View Full Code Here

Examples of org.openstreetmap.josm.data.projection.proj.ProjFactory.createInstance()

    }

    public static Proj getBaseProjection(String id) {
        ProjFactory fac = projs.get(id);
        if (fac == null) return null;
        return fac.createInstance();
    }

    public static Ellipsoid getEllipsoid(String id) {
        return ellipsoids.get(id);
    }
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.