use of org.apache.felix.scr.annotations.Activate in project fabric8 by jboss-fuse.
the class FabricJaasRealm method activate.
@Activate
void activate(BundleContext bundleContext, Map<String, Object> configuration) {
Map<String, Object> options = new HashMap<String, Object>();
options.putAll(configuration);
options.put(BundleContext.class.getName(), bundleContext);
options.put(ProxyLoginModule.PROPERTY_MODULE, ZK_LOGIN_MODULE);
options.put(ProxyLoginModule.PROPERTY_BUNDLE, Long.toString(bundleContext.getBundle().getBundleId()));
enties.add(new AppConfigurationEntry(ProxyLoginModule.class.getName(), AppConfigurationEntry.LoginModuleControlFlag.REQUIRED, options));
activateComponent();
}
use of org.apache.felix.scr.annotations.Activate in project fabric8 by jboss-fuse.
the class AutoScaleController method activate.
@Activate
void activate() {
CuratorFramework curator = this.curator.get();
enableMasterZkCache(curator);
group = new ZooKeeperGroup<AutoScalerNode>(curator, ZkPath.AUTO_SCALE_CLUSTER.getPath(), AutoScalerNode.class);
group.add(this);
group.update(createState());
group.start();
activateComponent();
}
use of org.apache.felix.scr.annotations.Activate in project fabric8 by jboss-fuse.
the class FabricCxfRegistrationHandler method activate.
@Activate
void activate() throws Exception {
activateComponent();
if (mBeanServer == null) {
mBeanServer = ManagementFactory.getPlatformMBeanServer();
}
if (mBeanServer != null) {
Object handback = null;
mBeanServer.addNotificationListener(MBeanServerDelegate.DELEGATE_NAME, listener, filter, handback);
this.registeredListener = true;
}
String id = getCurrentContainer().getId();
String zkPath = ZkPath.CONFIG_CONTAINER.getPath(id);
versionNodeMonitor = new NodeCacheExtended(curator.get(), zkPath);
versionNodeMonitor.getListenable().addListener(this);
versionNodeMonitor.start();
replay();
}
use of org.apache.felix.scr.annotations.Activate in project fabric8 by jboss-fuse.
the class ClusterBootstrapManager method activate.
@Activate
void activate() throws Exception {
StandardMBean mbean = new StandardMBean(this, ClusterBootstrapManagerMBean.class);
JMXUtils.registerMBean(mbean, mbeanServer.get(), OBJECT_NAME);
activateComponent();
}
use of org.apache.felix.scr.annotations.Activate in project fabric8 by jboss-fuse.
the class ClusterServiceManager method activate.
@Activate
void activate() throws Exception {
StandardMBean mbean = new StandardMBean(this, ClusterServiceManagerMBean.class);
JMXUtils.registerMBean(mbean, mbeanServer.get(), OBJECT_NAME);
activateComponent();
}
Aggregations