Examples of events()


Examples of games.stendhal.server.entity.player.Player.events()

    action.put("target", "hugo");
    action.put("slot", "bag");
    action.put("item", "hugo");

    CommandCenter.execute(player, action);
    assertEquals("hugo is not an item.", player.events().get(0).get("text"));
    player.clearEvents();

    action = new RPAction();
    action.put("type", "summonat");
    action.put("target", "hugo");
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.events()

    action.put("slot", "bag");
    action.put("item", "dagger");
    assertFalse(player.isEquipped("dagger"));
    CommandCenter.execute(player, action);
    // If the following fails, chances are quite good, the "items.xml" configuration file could not be loaded.
    assertTrue(player.events().isEmpty());
    assertTrue(player.isEquipped("dagger"));
    player.clearEvents();

    action = new RPAction();
    action.put("type", "summonat");
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.LocalSearchOnAttribute.events()

        else
          attr.setImplementationType(AttributeImplementationType.TEXT);

        attr.setOrderInForm(annotation.order());

        String events[] = annotation.events();
        for (int i = 0; i < events.length; i++)
          attr.addEvent(events[i]);

        String eventFunctions[] = annotation.eventFunctions();
        for (int i = 0; i < events.length; i++)
View Full Code Here

Examples of org.hotswap.agent.annotation.OnClassLoadEvent.events()

            appClassLoader = pluginManager.getPluginRegistry().getAppClassLoader(pluginAnnotation.getPlugin());

        hotswapTransformer.registerTransformer(appClassLoader, annot.classNameRegexp(), new ClassFileTransformer() {
            @Override
            public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException {
                List<LoadEvent> events = Arrays.asList(annot.events());
                if ((classBeingRedefined == null) ? !events.contains(LoadEvent.DEFINE) : !events.contains(LoadEvent.REDEFINE)) {
                    // Hotswap reload which is the client not interested of
                    return classfileBuffer;
                }
View Full Code Here

Examples of org.qi4j.library.eventsourcing.domain.source.EventSource.events()

        uow.complete();

        // Print events
        EventSource source = (EventSource) module.findService( EventSource.class ).get();

        source.events( 0, Long.MAX_VALUE ).transferTo( Transforms.map( new Function<UnitOfWorkDomainEventsValue, String>()
                {
                    public String map( UnitOfWorkDomainEventsValue unitOfWorkDomainEventsValue )
                    {
                        return unitOfWorkDomainEventsValue.toString();
                    }
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.