Examples of registerManagedResource()


Examples of org.gatein.management.api.ComponentRegistration.registerManagedResource()

    @Override
    public void initialize(ExtensionContext context) {
        ComponentRegistration registration = context.registerManagedComponent("mop");
        registration.registerBindingProvider(MopBindingProvider.INSTANCE);

        ManagedResource.Registration mop = registration
                .registerManagedResource(description("MOP (Model Object for Portal) Managed Resource, responsible for handling management operations on navigation, pages, and sites."));
        mop.registerOperationHandler(OperationNames.IMPORT_RESOURCE, new MopImportResource(),
                description("Imports mop data from an exported zip file."));

        mop.registerOperationHandler(OperationNames.READ_RESOURCE, new MopReadResource(),
View Full Code Here

Examples of org.gatein.management.api.ComponentRegistration.registerManagedResource()

    @Override
    public void initialize(ExtensionContext context) {
        ComponentRegistration registration = context.registerManagedComponent("mop");
        registration.registerBindingProvider(MopBindingProvider.INSTANCE);

        ManagedResource.Registration mop = registration
                .registerManagedResource(description("MOP (Model Object for Portal) Managed Resource, responsible for handling management operations on navigation, pages, and sites."));
        mop.registerOperationHandler(OperationNames.IMPORT_RESOURCE, new MopImportResource(),
                description("Imports mop data from an exported zip file."));

        mop.registerOperationHandler(OperationNames.READ_RESOURCE, new MopReadResource(),
View Full Code Here

Examples of org.gatein.management.api.ComponentRegistration.registerManagedResource()

   public void initialize(ExtensionContext context)
   {
      ComponentRegistration registration = context.registerManagedComponent("mop");
      registration.registerBindingProvider(MopBindingProvider.INSTANCE);

      ManagedResource.Registration mop = registration.registerManagedResource(description("MOP (Model Object for Portal) Managed Resource, responsible for handling management operations on navigation, pages, and sites."));
      mop.registerOperationHandler(OperationNames.IMPORT_RESOURCE, new MopImportResource(), description("Imports mop data from an exported zip file."));

      mop.registerOperationHandler(OperationNames.READ_RESOURCE, new MopReadResource(), description("Lists available site types for a portal"));

      ManagedResource.Registration sitetypes = mop.registerSubResource("{site-type}sites", description("Management resource responsible for handling management operations on a specific site type for a portal."));
View Full Code Here

Examples of org.gatein.management.api.ComponentRegistration.registerManagedResource()

      String componentName = managed.value();
      if ("".equals(componentName)) throw new RuntimeException(Managed.class + " annotation must have a value (path) for component class " + component);
      if (debug) log.debug("Registering managed component " + componentName);

      ComponentRegistration registration = registerManagedComponent(componentName);
      registration.registerManagedResource(description(managed.description()));

      // Register resources & operations
      AnnotatedResource annotatedResource = new AnnotatedResource(component);
      annotatedResource.register(rootResource);
View Full Code Here

Examples of org.gatein.management.api.ComponentRegistration.registerManagedResource()

    private void initializeMop(ExtensionContext context) {
        ComponentRegistration registration = context.registerManagedComponent("mop");
        registration.registerBindingProvider(MopBindingProvider.INSTANCE);

        ManagedResource.Registration mop = registration
                .registerManagedResource(description("MOP (Model Object for Portal) Managed Resource, responsible for handling management operations on navigation, pages, and sites."));
        mop.registerOperationHandler(OperationNames.IMPORT_RESOURCE, new MopImportResource(),
                description("Imports mop data from an exported zip file."));

        mop.registerOperationHandler(OperationNames.READ_RESOURCE, new MopReadResource(),
View Full Code Here

Examples of org.gatein.management.api.ComponentRegistration.registerManagedResource()

    private void initializeTemplate(ExtensionContext context) {
        ComponentRegistration registration = context.registerManagedComponent("template");
        registration.registerBindingProvider(MopBindingProvider.INSTANCE);

        ManagedResource.Registration template = registration
                .registerManagedResource(description("Template Managed Resource, responsible for handling imports operations of templates sites."));

        ManagedResource.Registration templateType = template.registerSubResource("{template-type: portal|group|user}",
                description("Management resource responsible for handling management operations for a template's import."));
View Full Code Here

Examples of org.springframework.jmx.export.MBeanExporter.registerManagedResource()

      final MBeanServer jmxServer = findInstance(MBeanServer.class);
      if (jmxServer != null) {
        final MBeanExporter exporter = new MBeanExporter();
        exporter.setServer(jmxServer);
        for (final Map.Entry<ObjectName, Object> resourceEntry : _managedResources.entrySet()) {
          exporter.registerManagedResource(resourceEntry.getValue(), resourceEntry.getKey());
        }
      }

      _status.set(Status.RUNNING);
View Full Code Here

Examples of org.springframework.jmx.export.MBeanExporter.registerManagedResource()

    if (_objectName != null && _jmxServer != null) {
      unregisterFromJmx();
      final MBeanExporter exporter = new MBeanExporter();
      exporter.setServer(_jmxServer);
      exporter.registerManagedResource(this, _objectName);
    }
  }

  private void unregisterFromJmx() {
    if (_objectName != null && _jmxServer != null && _jmxServer.isRegistered(_objectName)) {
View Full Code Here

Examples of org.springframework.jmx.export.MBeanExporter.registerManagedResource()

      MBeanServer jmxServer = ManagementFactory.getPlatformMBeanServer();
      ObjectName objectName = createObjectName();
      if (objectName != null) {
        MBeanExporter exporter = new MBeanExporter();
        exporter.setServer(jmxServer);
        exporter.registerManagedResource(this, objectName);
      }
    } catch (SecurityException e) {
      s_logger.warn("No permissions for platform MBean server - JMX will not be available", e);
    }
  }
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.