pf4j / pf4j-spring

Plugin Framework for Spring (PF4J - Spring Framework integration)
Apache License 2.0
346 stars 105 forks source link

Can't get working the functionality "Disable Plugin" #41

Closed carlosFlux closed 4 years ago

carlosFlux commented 4 years ago

From AbstractPluginManager.loadPlugins() its called AbstractPluginManager.loadPluginFromPath() that recognise and marks plugins as DISABLED (I'm only adding the disabled.txt in the plugins folder). But later AbstractPluginManager.resolvePlugins() mark the same plugin as RESOLVED. Is there something I'm missing?

decebals commented 4 years ago

@carlosFlux Which PF4J version do you use?

carlosFlux commented 4 years ago

Hello, These are the versions that I'm using

[INFO] - org.pf4j:pf4j-spring:jar:0.5.0:compile [INFO] +- org.pf4j:pf4j:jar:2.3.0:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.7.5:compile [INFO] | - com.github.zafarkhaja:java-semver:jar:0.9.0:compile [INFO] +- org.springframework:spring-core:jar:4.0.5.RELEASE:compile [INFO] | - commons-logging:commons-logging:jar:1.1.3:compile [INFO] +- org.springframework:spring-context:jar:4.0.5.RELEASE:compile [INFO] | +- org.springframework:spring-aop:jar:4.0.5.RELEASE:compile [INFO] | | - aopalliance:aopalliance:jar:1.0:compile [INFO] | +- org.springframework:spring-beans:jar:4.0.5.RELEASE:compile [INFO] | - org.springframework:spring-expression:jar:4.0.5.RELEASE:compile [INFO] +- log4j:log4j:jar:1.2.16:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.5:compile [INFO] - commons-lang:commons-lang:jar:2.4:compile

Thanks.

carlosFlux commented 4 years ago

Oh it's solved in a recent version of the core library. Thanks for your time.