Examples of create()


Examples of com.ibm.demo.session.stateless.LoanManagerHomeRemote.create()

      Context jndiContext = new InitialContext();  
      Object ref = jndiContext.lookup("java:/comp/env/ejb/LoanManagerHomeRemote");  
      LoanManagerHomeRemote home = (LoanManagerHomeRemote)
                      PortableRemoteObject.narrow(ref, LoanManagerHomeRemote.class);

      loanmanager = home.create();
     
    } catch(CreateException ce){
      ce.printStackTrace();
    } catch(RemoteException re){
      re.printStackTrace();

Examples of com.ibm.icu.impl.ICULocaleService.ICUResourceBundleFactory.create()

    logln(invisibleLKF.getDisplayName("bar", null));
    invisibleLKF.updateVisibleIDs(new HashMap());

    // ResourceBundleFactory
    ICUResourceBundleFactory rbf = new ICUResourceBundleFactory();
    logln("RB: " + rbf.create(lkey, null));

    // ICUNotifier
    ICUNotifier nf = new ICUNSubclass();
    try {
        nf.addListener(null);

Examples of com.ibm.icu.impl.ICULocaleService.LocaleKeyFactory.create()

        logln("lkey from null,null: " + lkey);

    // LocaleKeyFactory
    LocaleKeyFactory lkf = new LKFSubclass(false);
        logln("lkf: " + lkf);
    logln("obj: " + lkf.create(lkey, null));
    logln(lkf.getDisplayName("foo", null));
    logln(lkf.getDisplayName("bar", null));
    lkf.updateVisibleIDs(new HashMap());

    LocaleKeyFactory invisibleLKF = new LKFSubclass(false);

Examples of com.ibm.icu.impl.duration.PeriodBuilder.create()

        // sanity check, make sure by default all units are set
        pbf = BasicPeriodFormatterService.getInstance().newPeriodBuilderFactory();
        pbf.setLocale("en"); // in en locale, all units always available
        PeriodBuilder b = pbf.getSingleUnitBuilder();
        for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
            Period p = b.create((long)(approxDurations[unit.ordinal()]*2.5));
            assertTrue(null, p.isSet(unit));
        }

        pbf.setAvailableUnitRange(MINUTE, MONTH);
        // units that are not available are never set

Examples of com.ibm.icu.util.ULocale.Builder.create()

                                + " in test case: " + Utility.arrayToString(TESTCASE[tidx]));
                    }
                }
            }
            if (expected != null) {
                ULocale loc = bld.create();
                if (!expected[1].equals(loc.toString())) {
                    errln("FAIL: Wrong locale ID - " + loc +
                            " for test case: " + Utility.arrayToString(TESTCASE[tidx]));
                }
                String langtag = loc.toLanguageTag();

Examples of com.intel.mtwilson.as.controller.MwMleSourceJpaController.create()

                                    // Else create a new entry in the DB.
                                    MwMleSource mleSourceData = new MwMleSource();
                                    mleSourceData.setMleId(tblMle);
                                    mleSourceData.setHostName(mleSourceObj.getHostName());       

                                    mleSourceJpaController.create(mleSourceData);

                                } catch (ASException ase) {
                                        throw ase;
                                } catch (Exception e) {
                                    throw new ASException(e);

Examples of com.intel.mtwilson.as.controller.TblHostsJpaController.create()

                                    tblHosts.setLocation(location);
                                }

                                // create the host
                                log.debug("COMMITING NEW HOST DO DATABASE");
                                hostController.create(tblHosts);

  }


  public HostResponse isHostRegistered(String hostnameOrAddress) {

Examples of com.intel.mtwilson.as.controller.TblLocationPcrJpaController.create()

                } else {
                    // Add a new entry for the location mapping table.
                    locPCR = new TblLocationPcr();
                    locPCR.setLocation(hlObj.location);
                    locPCR.setPcrValue(hlObj.white_list_value);
                    locJpaController.create(locPCR);
                    log.info(String.format("Successfully added a new location value %s with white list %s.", hlObj.location, hlObj.white_list_value));
                }
            }
        } catch (ASException e) {
            throw e;

Examples of com.intellij.codeInsight.daemon.impl.HighlightInfo.Builder.create()

            builder.description(message);
        }
        if(attributes != null) {
            builder.textAttributes(attributes);
        }
        return builder.create();
    }
}

Examples of com.intellij.openapi.vfs.pointers.VirtualFilePointerManager.create()

        return scriptFile;
    }

    public void setScriptFile(final VirtualFile pScriptFilePointer) {
        final VirtualFilePointerManager mgr = VirtualFilePointerManager.getInstance();
        final VirtualFilePointer pointer = mgr.create(pScriptFilePointer, this);
        setScriptFile(pointer);
    }

    public void setScriptFile(final VirtualFilePointer pScriptFilePointer) {
        scriptFile = pScriptFilePointer;
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.