@Override
public void start(BundleContext bundleContext) throws Exception {
Dictionary<String, Object> properties = new Hashtable<>();
properties.put(
"com.liferay.portlet.display-category", "category.sample");
properties.put("com.liferay.portlet.instanceable", "true");
properties.put("javax.portlet.display-name", "OSGi API Portlet");
properties.put(
"javax.portlet.security-role-ref",
new String[] {"power-user", "user"});
_serviceRegistration = bundleContext.registerService(
Portlet.class, new OSGiAPIPortlet(), properties);
}
Activator.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:liferay-blade-samples
作者:
评论列表
文章目录