Class PlexusContainerCapsuleFactory<O extends Options,R extends InvokerRequest<O>,C extends LookupInvoker.LookupInvokerContext<O,R,C>>

java.lang.Object
org.apache.maven.cling.invoker.PlexusContainerCapsuleFactory<O,R,C>
Type Parameters:
O - the options type
R - the invoker request type
C - the invoker context type
All Implemented Interfaces:
ContainerCapsuleFactory<O,R,C>

public class PlexusContainerCapsuleFactory<O extends Options,R extends InvokerRequest<O>,C extends LookupInvoker.LookupInvokerContext<O,R,C>> extends Object implements ContainerCapsuleFactory<O,R,C>
Container capsule backed by Plexus Container.
  • Constructor Details

    • PlexusContainerCapsuleFactory

      public PlexusContainerCapsuleFactory()
  • Method Details

    • createContainerCapsule

      public ContainerCapsule createContainerCapsule(C context) throws InvokerException
      Description copied from interface: ContainerCapsuleFactory
      Creates container capsule.
      Specified by:
      createContainerCapsule in interface ContainerCapsuleFactory<O extends Options,R extends InvokerRequest<O>,C extends LookupInvoker.LookupInvokerContext<O,R,C>>
      Throws:
      InvokerException
    • container

      protected org.codehaus.plexus.PlexusContainer container(C context) throws Exception
      Throws:
      Exception
    • collectExportedArtifacts

      protected Set<String> collectExportedArtifacts(org.apache.maven.extension.internal.CoreExtensionEntry coreEntry, List<org.apache.maven.extension.internal.CoreExtensionEntry> extensionEntries)
    • collectExportedPackages

      protected Set<String> collectExportedPackages(org.apache.maven.extension.internal.CoreExtensionEntry coreEntry, List<org.apache.maven.extension.internal.CoreExtensionEntry> extensionEntries)
    • getCustomModule

      protected com.google.inject.Module getCustomModule(C context, org.apache.maven.extension.internal.CoreExports exports)
      Note: overriding this method should be avoided. Preferred way to replace Maven components is the "normal" way where the components are on index (are annotated with JSR330 annotations and Sisu index is created) and, they have priorities set.
    • createLoggerManager

      protected org.codehaus.plexus.logging.LoggerManager createLoggerManager()
    • customizeContainerConfiguration

      protected void customizeContainerConfiguration(C context, org.codehaus.plexus.ContainerConfiguration configuration) throws Exception
      Throws:
      Exception
    • customizeContainer

      protected void customizeContainer(C context, org.codehaus.plexus.PlexusContainer container) throws Exception
      Throws:
      Exception
    • parseExtClasspath

      protected List<Path> parseExtClasspath(C context) throws Exception
      Throws:
      Exception
    • setupContainerRealm

      protected org.codehaus.plexus.classworlds.realm.ClassRealm setupContainerRealm(Logger logger, org.codehaus.plexus.classworlds.ClassWorld classWorld, org.codehaus.plexus.classworlds.realm.ClassRealm coreRealm, List<Path> extClassPath, List<org.apache.maven.extension.internal.CoreExtensionEntry> extensions) throws Exception
      Throws:
      Exception
    • loadCoreExtensions

      protected List<org.apache.maven.extension.internal.CoreExtensionEntry> loadCoreExtensions(C context, org.codehaus.plexus.classworlds.realm.ClassRealm containerRealm, Set<String> providedArtifacts) throws Exception
      Throws:
      Exception