Examples of register()


Examples of org.springframework.web.context.support.AnnotationConfigWebApplicationContext.register()

public class ApplicationInitializer implements WebApplicationInitializer {

  @Override
  public void onStartup(ServletContext servletContext) throws ServletException {
    AnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();
    rootContext.register(ApplicationConfiguration.class);
    rootContext.setDisplayName("Movie database");
    servletContext.addListener(new ContextLoaderListener(rootContext));
    ServletRegistration.Dynamic dispatcher =
        servletContext.addServlet("dispatcher", new DispatcherServlet(rootContext));
    dispatcher.setLoadOnStartup(1);

Examples of org.springsource.loaded.agent.FileSystemWatcher.register()

  @Test
  public void dirs() throws IOException {
    TestFileChangeListener listener = new TestFileChangeListener();
    File dir = getTempDir();
    FileSystemWatcher watcher = new FileSystemWatcher(listener, -1, "test");
    watcher.register(dir);
    pause(1000);
    create(dir, "abc.txt");
    pause(1100);
    create(dir, "abcd.txt");
    pause(1100);

Examples of org.syncany.config.LocalEventBus.register()

    // Create access token (not needed in this test, but prevents errors in daemon)
    daemonConfig.setPortTO(TestDaemonUtil.createPortTO(port));
   
    // Register to event bus     
    LocalEventBus localEventBus = LocalEventBus.getInstance();
    localEventBus.register(this);
       
    // Prepare CLI request
    StatusFolderRequest cliStatusRequest = new StatusFolderRequest();
    cliStatusRequest.setId(2586);
    cliStatusRequest.setRoot(clientA.getConfig().getLocalDir().getAbsolutePath());

Examples of org.terasology.engine.ComponentSystemManager.register()

    public boolean step() {
        ComponentSystemManager componentSystemManager = CoreRegistry.get(ComponentSystemManager.class);
        ModuleManager moduleManager = CoreRegistry.get(ModuleManager.class);

        LocalPlayerSystem localPlayerSystem = new LocalPlayerSystem();
        componentSystemManager.register(localPlayerSystem, "engine:localPlayerSystem");
        CoreRegistry.put(LocalPlayerSystem.class, localPlayerSystem);

        CameraTargetSystem cameraTargetSystem = new CameraTargetSystem();
        CoreRegistry.put(CameraTargetSystem.class, cameraTargetSystem);
        componentSystemManager.register(cameraTargetSystem, "engine:CameraTargetSystem");

Examples of org.terasology.reflection.copy.CopyStrategyLibrary.register()

                continue;
            }
            Class targetType = ReflectionUtil.getTypeParameterForSuper(copyStrategy, CopyStrategy.class, 0);
            if (targetType != null) {
                try {
                    copyStrategyLibrary.register(targetType, copyStrategy.newInstance());
                } catch (InstantiationException | IllegalAccessException e) {
                    logger.error("Cannot register CopyStrategy '{}' - failed to instantiate", copyStrategy, e);
                }
            } else {
                logger.error("Cannot register CopyStrategy '{}' - unable to determine target type", copyStrategy);

Examples of org.thechiselgroup.choosel.core.client.visualization.model.initialization.ViewContentDisplaysConfiguration.register()

    @Override
    public ViewContentDisplaysConfiguration get() {
        ViewContentDisplaysConfiguration result = new ViewContentDisplaysConfiguration();
        for (ViewContentDisplayConfiguration configuration : viewContentDisplayConfigurations) {
            result.register(configuration);
        }
        return result;
    }

}

Examples of org.thechiselgroup.choosel.dnd.client.windows.OverlayWindowContentProducer.register()

    @Override
    public WindowContentProducer get() {
        OverlayWindowContentProducer contentProducer = new OverlayWindowContentProducer(
                viewProducer);

        contentProducer.register(WorkbenchInitializer.WINDOW_CONTENT_HELP,
                new HelpWindowContentFactory());
        contentProducer.register(WorkbenchInitializer.WINDOW_CONTENT_NOTE,
                new NoteWindowContentFactory());

        return contentProducer;

Examples of org.uberfire.java.nio.file.Path.register()

        FileSystem fs = PROVIDER.newFileSystem( newRepo, env );

        WatchService ws = null;
        ws = fs.newWatchService();
        final Path path = fs.getRootDirectories().iterator().next();
        path.register( ws, StandardWatchEventKind.ENTRY_CREATE, StandardWatchEventKind.ENTRY_MODIFY, StandardWatchEventKind.ENTRY_DELETE, StandardWatchEventKind.ENTRY_RENAME );

        final WatchKey k = ws.take();

        final List<WatchEvent<?>> events = k.pollEvents();
        for ( WatchEvent object : events ) {

Examples of org.vosao.service.plugin.PluginServiceManager.register()

    for (PluginEntity plugin : getDao().getPluginDao().selectEnabled()) {
      try {
        PluginServiceManager manager = getBusiness()
          .getPluginBusiness().getFrontServices(plugin);
        if (manager != null) {
          manager.register(bridge);
        }
      } catch (ClassNotFoundException e) {
        e.printStackTrace();
      } catch (InstantiationException e) {
        e.printStackTrace();

Examples of org.wso2.carbon.utils.deployment.Axis2DeployerRegistry.register()

            configServiceListener = new Axis2ConfigServiceListener(axisConfig, bundleContext);
        }

        //Adding deployers which come inside bundles
        Axis2DeployerRegistry deployerRegistry = new Axis2DeployerRegistry(axisConfig);
        deployerRegistry.register(configItemHolder.getDeployerBundles());

        //Deploying modules which come inside bundles.
        Axis2ModuleRegistry moduleRegistry = new Axis2ModuleRegistry(axisConfig);
        moduleRegistry.register(configItemHolder.getModuleBundles());
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.