Package org.sonatype.nexus.plugins.capabilities

Examples of org.sonatype.nexus.plugins.capabilities.CapabilityRegistry


  protected final Logger log = LoggerFactory.getLogger(getClass());

  @Subscribe
  public void handle(final CapabilityRegistryEvent.AfterLoad event) {

    final CapabilityRegistry registry = event.getEventSender();

    try {

      final CapabilityType type = ConfigDescriptor.TYPE;

      if (hasNoReference(registry, type)) {

        log.info("provide default capability type={}", type);

        final boolean isEnabled = false;

        final String notes = "default config";

        final Map<String, String> props = Form
            .propsDefault();

        registry.add(type, isEnabled, notes, props);

      }

    } catch (final Exception e) {
      throw new RuntimeException("default capability failure", e);
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.plugins.capabilities.CapabilityRegistry

Copyright © 2018 www.massapicom. 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.