Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DYNAMIC policy requires "volatile"
  • Loading branch information
JulianSchuette committed Sep 21, 2018
1 parent ea94171 commit 52d22c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Expand Up @@ -68,7 +68,7 @@ public class AcmeClientService implements AcmeClient, Runnable {
/*
* The following block subscribes this component to the Settings Service
*/
@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC)
@Reference(cardinality = ReferenceCardinality.OPTIONAL)
private Settings settings = null;

private Set<SslContextFactoryReloadable> sslReloadables =
Expand All @@ -83,7 +83,6 @@ public class AcmeClientService implements AcmeClient, Runnable {
name = "dynamic-tls-reload-service",
service = SslContextFactoryReloadable.class,
cardinality = ReferenceCardinality.MULTIPLE,
policy = ReferencePolicy.DYNAMIC,
unbind = "unbindSslContextFactoryReloadable"
)
protected void bindSslContextFactoryReloadable(SslContextFactoryReloadable reloadable) {
Expand Down
Expand Up @@ -58,7 +58,7 @@ public class PolicyDecisionPoint implements PDP, PAP {
@NonNull
private LuconEngine engine = new LuconEngine(System.out);

@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL)
@Reference(cardinality = ReferenceCardinality.OPTIONAL)
@Nullable
private RouteManager routeManager;

Expand Down
Expand Up @@ -62,7 +62,7 @@
public class RouteManagerService implements RouteManager {
private static final Logger LOG = LoggerFactory.getLogger(RouteManagerService.class);

@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL)
@Reference(cardinality = ReferenceCardinality.OPTIONAL)
private PDP pdp;
private ComponentContext ctx;

Expand All @@ -71,7 +71,7 @@ protected void activate(ComponentContext ctx) {
this.ctx = ctx;
}

@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
@Reference(cardinality = ReferenceCardinality.MULTIPLE)
public void bindCamelContext(@NonNull CamelContext cCtx) {
try {
cCtx.stop();
Expand Down

0 comments on commit 52d22c3

Please sign in to comment.