Activator.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:liferay-blade-samples 作者:
@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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号