Examples of unregisterComponent()


Examples of org.picocontainer.MutablePicoContainer.unregisterComponent()

    }

    private static void registerCodeStyleManager(@NotNull Project project, @NotNull CodeStyleManager manager) {
        LOG.info("Registering code style manager '" + manager + "' for project '" + project.getName() + "'");
        MutablePicoContainer container = (MutablePicoContainer) project.getPicoContainer();
        container.unregisterComponent(CODE_STYLE_MANAGER_KEY);
        container.registerComponentInstance(CODE_STYLE_MANAGER_KEY, manager);
    }

    /*
      * NOTES: Relevant places in IDEA's code style architecture from com.intellij.codeInsight.actions.ReformatCodeProcessor:
View Full Code Here

Examples of org.picocontainer.MutablePicoContainer.unregisterComponent()

  }

  private static void registerCodeStyleManager(@NotNull Project project, @NotNull CodeStyleManager manager) {
    LOG.info("Registering code style manager '" + manager + "' for project '" + project.getName() + "'");
    MutablePicoContainer container = (MutablePicoContainer) project.getPicoContainer();
    container.unregisterComponent(CODE_STYLE_MANAGER_KEY);
    container.registerComponentInstance(CODE_STYLE_MANAGER_KEY, manager);
  }

}
View Full Code Here

Examples of org.picocontainer.MutablePicoContainer.unregisterComponent()

    }

    private static void registerCodeStyleManager(@NotNull Project project, @NotNull CodeStyleManager manager) {
        LOG.info("Registering code style manager '" + manager + "' for project '" + project.getName() + "'");
        MutablePicoContainer container = (MutablePicoContainer) project.getPicoContainer();
        container.unregisterComponent(CODE_STYLE_MANAGER_KEY);
        container.registerComponentInstance(CODE_STYLE_MANAGER_KEY, manager);
    }

    /* NOTES: Relevant places in IDEA's code style architecture

View Full Code Here

Examples of org.picocontainer.MutablePicoContainer.unregisterComponent()

                  "Cannot register a container to itself. The container is already implicitly registered.");
            }
         }
         finally
         {
            pc.unregisterComponent(contrivedKey);
         }

      }
      ComponentAdapter componentAdapter = new InstanceComponentAdapter(componentKey, componentInstance);
      registerComponent(componentAdapter);
View Full Code Here

Examples of org.picocontainer.MutablePicoContainer.unregisterComponent()

                return getJMXObjectName();
            }

            public void destroy()
            {
                _adminContainer.unregisterComponent(IEventChannel.class);

                container_.removeChildContainer(_adminContainer);
            }
        };
View Full Code Here

Examples of org.picocontainer.MutablePicoContainer.unregisterComponent()

                return getJMXObjectName();
            }

            public void destroy()
            {
                _adminContainer.unregisterComponent(IEventChannel.class);

                container_.removeChildContainer(_adminContainer);
            }
        };
View Full Code Here

Examples of org.picocontainer.MutablePicoContainer.unregisterComponent()

                  "Cannot register a container to itself. The container is already implicitly registered.");
            }
         }
         finally
         {
            pc.unregisterComponent(contrivedKey);
         }

      }
      ComponentAdapter componentAdapter = new InstanceComponentAdapter(componentKey, componentInstance);
      registerComponent(componentAdapter);
View Full Code Here

Examples of org.picocontainer.MutablePicoContainer.unregisterComponent()

                return getJMXObjectName();
            }

            public void destroy()
            {
                _adminContainer.unregisterComponent(IEventChannel.class);

                container_.removeChildContainer(_adminContainer);
            }
        };
View Full Code Here

Examples of org.picocontainer.MutablePicoContainer.unregisterComponent()

                  "Cannot register a container to itself. The container is already implicitly registered.");
            }
         }
         finally
         {
            pc.unregisterComponent(contrivedKey);
         }

      }
      ComponentAdapter componentAdapter = new InstanceComponentAdapter(componentKey, componentInstance);
      registerComponent(componentAdapter);
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.