Examples of register()


Examples of org.codehaus.groovy.tools.shell.Groovysh.register()

        // remove from "names" set to avoid duplicate error.
        registry.remove(command);
      }
    }

    shell.register(new HelpCommand(shell));
    shell.register(new SetCommand(shell));
    shell.register(new ShowCommand(shell));
    shell.register(new CreateCommand(shell));
    shell.register(new DeleteCommand(shell));
    shell.register(new UpdateCommand(shell));

Examples of org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar.register()

                assert(args.length == 1);
                assert(args[0] instanceof Shell);

                Shell shell = (Shell)args[0];
                XmlCommandRegistrar r = new XmlCommandRegistrar(shell, cl);
                r.register(GroovyshCommand.class.getResource("commands.xml"));

                return null;
            }
        };
        Groovysh shell = new Groovysh(cl, binding, io, registrar);

Examples of org.codehaus.loom.interfaces.SystemManager.register()

                SystemManager.class.getName() );

        final SystemManager mxExporter =
            systemManager.getSubContext( null, "component" );

        mxExporter.register( "Embeddor", this );
        for( int i = 0; i < m_entries.length; i++ )
        {
            final EmbeddorEntry entry = m_entries[ i ];
            mxExporter.register( entry.getLoggerName(),
                                 entry.getObject() );

Examples of org.codehaus.wadi.group.DispatcherRegistry.register()

    @Override
    protected void doStart() throws Exception {
        _dispatcher = newDispatcher();
        DispatcherRegistry dispatcherRegistry = new StaticDispatcherRegistry();
        dispatcherRegistry.register(_dispatcher);
        _dispatcher.start();
       
        AdminServiceSpace adminServiceSpace = new AdminServiceSpace(_dispatcher,
            new JDKClassIndexerRegistry(new DeclaredMemberFilter()));
        adminServiceSpace.start();

Examples of org.codehaus.wadi.group.StaticDispatcherRegistry.register()

    @Override
    protected void doStart() throws Exception {
        _dispatcher = newDispatcher();
        DispatcherRegistry dispatcherRegistry = new StaticDispatcherRegistry();
        dispatcherRegistry.register(_dispatcher);
        _dispatcher.start();
       
        AdminServiceSpace adminServiceSpace = new AdminServiceSpace(_dispatcher,
            new JDKClassIndexerRegistry(new DeclaredMemberFilter()));
        adminServiceSpace.start();

Examples of org.codehaus.wadi.servicespace.ServiceRegistry.register()

        modify().returnValue(serviceName);

        beginSection(s.ordered("Register service then start"));

        ServiceRegistry serviceRegistry = serviceSpace.getServiceRegistry();
        serviceRegistry.register(serviceName, service);
       
        serviceSpace.start();
        endSection();
       
        startVerification();

Examples of org.codehaus.xfire.aegis.type.CustomTypeMapping.register()

    {
        CustomTypeMapping mapping = new CustomTypeMapping();
       
        QName qname = new QName( "urn:soap", "String" );
       
        mapping.register( String.class, qname, new StringType() );
       
        assertTrue( mapping.isRegistered( String.class ) );
        assertTrue( mapping.isRegistered( qname ) );
       
        Type type = mapping.getType( String.class );

Examples of org.codehaus.xfire.aegis.type.TypeMapping.register()

        TypeMapping typeMapping = bp.getTypeMapping(model);
       
        BeanType bt = new BeanType();
        bt.setSchemaType(new QName("http://services.xfire.codehaus.org","SimpleBean"));
        bt.setTypeClass(SimpleBean.class);
        typeMapping.register(bt);
        // -- End insertion
       
        client.setXFire(getXFire());
        client.setUrl("xfire.local://BeanService");
        client.setTransport(getTransportManager().getTransport(LocalTransport.BINDING_ID));

Examples of org.codehaus.xfire.transport.DefaultTransportManager.register()

    {
        Channel serverChannel = serverTrans.createChannel("Echo");

        DefaultTransportManager tm = new DefaultTransportManager();
        tm.initialize();
        tm.register(clientTrans);
      
        ObjectServiceFactory sf = new ObjectServiceFactory(tm);
        sf.addSoap11Transport(XMPPTransport.BINDING_ID);
        Service serviceModel = sf.create(Echo.class);
        Client client = new Client(clientTrans, serviceModel, id + "/Echo");

Examples of org.dspace.identifier.IdentifierService.register()

        Item item = is.getItem();
        IdentifierService identifierService = new DSpace().getSingletonService(IdentifierService.class);
        try {
            if(suppliedHandle == null)
            {
                identifierService.register(c, item);
            }else{
                identifierService.register(c, item, suppliedHandle);
            }
        } catch (IdentifierException e) {
            throw new RuntimeException("Can't create an Identifier!", e);
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.