//conf.setClassWorld( classWorld );
+ ClassLoader ori = Thread.currentThread().getContextClassLoader();
+
try
{
+ Thread.currentThread().setContextClassLoader( classRealm );
plexusContainer = new DefaultPlexusContainer( conf );
}
catch ( PlexusContainerException e )
{
throw new PlexusSisuBridgeException( e.getMessage(), e );
+ } finally {
+ Thread.currentThread().setContextClassLoader( ori );
}
}
artifactContextProducer = new DefaultArtifactContextProducer();
- indexerEngine = plexusSisuBridge.lookup( IndexerEngine.class );
+ indexerEngine = plexusSisuBridge.lookup( IndexerEngine.class, "default" );
- indexPacker = plexusSisuBridge.lookup( IndexPacker.class );
+ indexPacker = plexusSisuBridge.lookup( IndexPacker.class, "default" );
}
public void executeTask( Task task )
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd">
+ http://www.springframework.org/schema/context/spring-context-3.0.xsd"
+ default-lazy-init="true">
<context:annotation-config/>
<context:component-scan base-package="org.apache.maven.archiva.web"/>
+
</beans>
\ No newline at end of file
</props>
</property>
</bean>
-
+
+
+ <bean name="scheduler" class="org.codehaus.redback.components.scheduler.DefaultScheduler">
+ <property name="properties">
+ <props>
+ <prop key="org.quartz.scheduler.instanceName">scheduler1</prop>
+ <prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</prop>
+ <prop key="org.quartz.threadPool.threadCount">1</prop>
+ <prop key="org.quartz.threadPool.threadPriority">4</prop>
+ <prop key="org.quartz.jobStore.class">org.quartz.simpl.RAMJobStore</prop>
+ </props>
+ </property>
+ </bean>
public void initialize()
throws PlexusSisuBridgeException
{
- //factory = plexusSisuBridge.lookup( ArtifactFactory.class , "default" );
- //collector = plexusSisuBridge.lookup( ArtifactCollector.class , "default" );
+ factory = plexusSisuBridge.lookup( ArtifactFactory.class , "default" );
+ collector = plexusSisuBridge.lookup( ArtifactCollector.class , "default" );
DefaultModelBuilderFactory defaultModelBuilderFactory = new DefaultModelBuilderFactory();