Examples of create()


Examples of net.citizensnpcs.waypoints.WaypointModifierType.create()

    player.sendMessage(ChatColor.AQUA
        + StringUtils.listify(StringUtils.wrap(StringUtils
            .capitalise(modifier.name().toLowerCase()))
            + " chat editor" + ChatColor.AQUA));
    Waypoint waypoint = npc.getWaypoints().getLast();
    ConversationUtils.addConverser(player, modifier.create(waypoint));
  }

  @Command(
      aliases = { "wp", "waypoint" },
      usage = "restart",

Examples of net.infopeers.restrant.commons.populate.DefaultPopulatorBuilder.create()

 
 
  private Populator createPopulator() {
    DefaultPopulatorBuilder builder = new DefaultPopulatorBuilder();
    builder.addBean2Bean(TestClass1.class, TestClass2.class);
    Populator populator = builder.create();
    return populator;
  }

}

Examples of net.jini.core.transaction.server.TransactionManager.create()

  try {
      /*
       * Should recover locators upon startup and try to
       * use null recovered locator preparer.
     */
      txn_mgr_proxy.create(1000);
      throw new TestException("Restarted service with "
          + "invalid configuration");
  } catch (Throwable e) {
      e.printStackTrace();
      if (!verifyConfigurationException(e)) {

Examples of net.juniper.contrail.api.ApiConnector.create()

    public void createDomain(DomainVO db, StringBuffer syncLogMesg) throws IOException {
        final ApiConnector api = _manager.getApiConnector();
        net.juniper.contrail.api.types.Domain vnc = new net.juniper.contrail.api.types.Domain();
        vnc.setName(db.getName());
        vnc.setUuid(db.getUuid());
        if (!api.create(vnc)) {
            s_logger.error("Unable to create domain " + vnc.getName());
            syncLogMesg.append("Error: Virtual domain# VNC : Unable to create domain: " + vnc.getName() + "\n");
            return;
        }
        syncLogMesg.append("Domain# VNC: " + vnc.getName() + " created \n");

Examples of net.minecraft.util.com.google.gson.GsonBuilder.create()

        this.f = minecraftserver;
        this.g = file1;
        GsonBuilder gsonbuilder = new GsonBuilder();

        gsonbuilder.registerTypeHierarchyAdapter(UserCacheEntry.class, new BanEntrySerializer(this, (GameProfileLookup) null));
        this.b = gsonbuilder.create();
        this.b();
    }

    private static GameProfile a(MinecraftServer minecraftserver, String s) {
        GameProfile[] agameprofile = new GameProfile[1];

Examples of net.openhft.collections.SharedHashMapBuilder.create()

    AtomicLong alValue = new AtomicLong();
    AtomicLong alKey = new AtomicLong();
    int runs = 3000000;
        SharedHashMapBuilder builder = new SharedHashMapBuilder().entries(runs);
        String shmPath = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") + "SHMTestIterator1";
        SharedHashMap<String, Long> shm = builder.create(new File(shmPath), String.class, Long.class);
        /*shm.put("k1", alValue.incrementAndGet());
        shm.put("k2", alValue.incrementAndGet());
        shm.put("k3", alValue.incrementAndGet());
        shm.put("k4", alValue.incrementAndGet());
        shm.put("k5", alValue.incrementAndGet());*/
 

Examples of net.paoding.rose.jade.context.application.JadeFactory.create()

    @Before
    public void init() {
        DataSource dataSource = DataSources.createUniqueDataSource();
        JadeFactory factory = new JadeFactory(dataSource);
        dao = factory.create(UserDAO.class);
        dao.createTable();
        dao.insert(1, "zhiliang1");
        dao.insert(2, "zhiliang2");
    }

Examples of net.paoding.rose.web.impl.mapping.TreeBuilder.create()

        LinkedEngine rootEngine = new LinkedEngine(null, new RootEngine(instructionExecutor),
                mappingTree);
        mappingTree.getMiddleEngines().addEngine(ReqMethod.ALL, rootEngine);

        TreeBuilder treeBuilder = new TreeBuilder();
        treeBuilder.create(mappingTree, modules);

        return mappingTree;
    }

    /**
 

Examples of net.sf.cglib.proxy.Enhancer.create()

  public <T> T newInstance(Class<T> classToInstantiate) {
    Enhancer enhancer = new Enhancer();
    enhancer.setSuperclass(classToInstantiate);
    enhancer.setCallback(NoOpInterceptor.INSTANCE);
    return (T) enhancer.create();
  }
 
  public <T> T newInstance(Class<T> classToInstantiate, Object[] args) {
    List<Class<?>> argTypes = new ArrayList<Class<?>>();
    for (Object arg : args) {

Examples of net.sf.cglib.proxy.InterfaceMaker.create()

    im.add(pojo.getClass())// add all class' public methods...

    // if POJO does not implement GBeanLifeCycle should we implement
    // it and dump/reroute it, to be safe ?

    Class c=im.create();
    return Proxy.getProxyClass(c.getClassLoader(), new Class[] {c});
  }
}
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.