Examples of Callback


Examples of it.unimi.dsi.parser.callback.Callback

                TRECParsingFactory.ELEMENT_ABST, TRECParsingFactory.ELEMENT_SUMMARY,
                TRECParsingFactory.ELEMENT_HL));

        final PrintWriter writer = new PrintWriter(System.out);

        parser.setCallback(new Callback() {
            int inContent;
            boolean output;

            @Override
            public void configure(BulletParser parser) {
View Full Code Here

Examples of javax.security.auth.callback.Callback

   
    public void handle(Callback []callbacks)
      throws IOException, UnsupportedCallbackException
    {
      for (int i = 0; i < callbacks.length; i++) {
        Callback cb = callbacks[i];

        if (cb instanceof NameCallback) {
          NameCallback name = (NameCallback) cb;

          name.setName(_userName);
View Full Code Here

Examples of javax.security.auth.callback.Callback

        public void handle( Callback[] callbacks ) throws UnsupportedCallbackException, IOException
        {
            for ( int ii = 0; ii < callbacks.length; ii++ )
            {
                Callback callBack = callbacks[ii];

                // Handles username callback.
                if ( callBack instanceof NameCallback )
                {
                    NameCallback nameCallback = ( NameCallback ) callBack;
View Full Code Here

Examples of jinngine.physics.ContactTrigger.Callback

    // put gravity on box
    scene.addForce( new GravityForce(box))
   
    // create a trigger to detect contact forces with some threshold
    scene.addTrigger(new ContactTrigger(box, 2.0, new Callback(){
      @Override
      public void contactAboveThreshold(Body interactingBody,
          ContactConstraint constraint) {
        System.out.println("In contact with " + interactingBody  );
      }
View Full Code Here

Examples of me.l1k3.parameter.client.Callback

    private ShowAndHidePanelEx slideC;
   
    @Override
    @SuppressWarnings("all")
    public void onModuleLoad() {
        Parameter.load("ui", new Callback() {
            @Override
            public void run(JavaScriptObject js) {
                load(js);
            }
        });
View Full Code Here

Examples of net.sf.cglib.proxy.Callback

            } catch (ClassNotFoundException e) {
                throw (NamingException)new NamingException("Could not load service interface class " + serviceInterfaceClassName).initCause(e);
            }
               
            // create method interceptors
            Callback callback = new ServiceMethodInterceptor(seiPortNameToFactoryMap);
            this.methodInterceptors = new Callback[]{SerializableNoOp.INSTANCE, callback};
        
            // create service class
            Enhancer enhancer = new Enhancer();
            enhancer.setClassLoader(classLoader);
View Full Code Here

Examples of net.sourceforge.purrpackage.reporting.SourceReader.Callback

                        final AtomicInteger sourceLineCount = new AtomicInteger(
                                0);
                        if (x instanceof SourceFileDataPair) {
                            try {
                                reader.read(((SourceFileDataPair) x).getData()
                                        .getName(), new Callback() {

                                    @Override
                                    // just a line counter
                                    public void lineRead(String line)
                                            throws Exception {
View Full Code Here

Examples of ns.foundation.NSKeyValueCoding._KeyBindingCreation._KeyBindingFactory.Callback

    Utility.takeValueForKey(obj, FORTY_TWO, "knownKey");
    assertEquals(FORTY_TWO, Utility.valueForKey(obj, "knownKey"));
  }
 
  public void testUtility$takeValueForKey$implementsCallBack() {
    Callback obj = new Callback() {
      private Object _value;
     
      public Object field;
      public Object method() { return null; }
      public void setMethod(Object obj) { }
View Full Code Here

Examples of org.activemq.util.Callback

    protected boolean topic = false;
    private String destinationName;
    protected TransactionTemplate transactionTemplate;

    public void testWriteLoop() throws Exception {
        transactionTemplate.run(new Callback() {
            public void execute() throws Throwable {
                writeMessage(0);

                // lets delete using a String which should cause a warning
                MessageIdentity messageIdentity = new MessageIdentity(messageIds[0]);
                container.delete(messageIdentity, createMessageAck(messageIdentity));
            }
        });

        System.out.println("About to write: " + messageCount + " messages to the container: " + container);

        transactionTemplate.run(new Callback() {
            public void execute() throws Throwable {
                for (int i = 0; i < messageCount; i++) {
                    writeMessage(i + 1);
                }
            }
        });


        System.out.println("About to read: " + messageCount + " messages");

        transactionTemplate.run(new Callback() {
            public void execute() throws Throwable {
                for (int i = 0; i < messageCount; i++) {
                    readMessage(i + 1);
                }
            }
        });

        System.out.println("About to delete: " + messageCount + " messages");

        transactionTemplate.run(new Callback() {
            public void execute() throws Throwable {
                for (int i = 0; i < messageCount; i++) {
                    deleteMessage(i + 1);
                }
            }
        });

        if (!topic) {
            System.out.println("About to check that all the messages are consumed");
            transactionTemplate.run(new Callback() {
                public void execute() throws Throwable {
                    for (int i = 0; i < messageCount; i++) {
                        assertNoMessage(i + 1);
                    }
                }
View Full Code Here

Examples of org.apache.activemq.util.Callback

            if (transformedMessage != null) {
                m = ActiveMQMessageTransformation.transformMessage(transformedMessage, session.connection);
            }
        }
        if (session.isClientAcknowledge()) {
            m.setAcknowledgeCallback(new Callback() {
                public void execute() throws Exception {
                    session.checkClosed();
                    session.acknowledge();
                }
            });
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.