File tree Expand file tree Collapse file tree 5 files changed +40
-0
lines changed
org.wso2.carbon.ndatasource.core/src/main/java/org/wso2/carbon/ndatasource/core
org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/secure
org.wso2.carbon.server.admin/src/main/java/org/wso2/carbon/server/admin/service
org.wso2.carbon.ui/src/main/java/org/wso2/carbon/ui
org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/common Expand file tree Collapse file tree 5 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1818import java .util .ArrayList ;
1919import java .util .List ;
2020
21+ import org .osgi .annotation .bundle .Capability ;
2122import org .wso2 .carbon .ndatasource .common .DataSourceException ;
2223
2324/**
2425 * This class represents the data source OSGi service.
2526 */
27+ @ Capability (
28+ namespace = "osgi.service" ,
29+ attribute = {
30+ "objectClass=org.wso2.carbon.ndatasource.core.DataSourceService" ,
31+ "service.scope=singleton"
32+ }
33+ )
2634public class DataSourceService {
2735
2836 public List <CarbonDataSource > getAllDataSources () throws DataSourceException {
Original file line number Diff line number Diff line change 2020
2121import org .apache .commons .logging .Log ;
2222import org .apache .commons .logging .LogFactory ;
23+ import org .osgi .annotation .bundle .Capability ;
2324import org .wso2 .carbon .registry .core .ActionConstants ;
2425import org .wso2 .carbon .registry .core .config .RegistryContext ;
2526import org .wso2 .carbon .registry .core .utils .RegistryUtils ;
3738 * permissions to registry resource permissions and thereby manage accessibility to various resource
3839 * paths based on the amount of permissions available to a given role.
3940 */
41+ @ Capability (
42+ namespace = "osgi.service" ,
43+ attribute = {
44+ "objectClass=org.wso2.carbon.user.core.listener.AuthorizationManagerListener" ,
45+ "service.scope=singleton"
46+ }
47+ )
4048public class AuthorizeRoleListener extends AbstractAuthorizationManagerListener
4149 implements AuthorizationManagerListener {
4250
Original file line number Diff line number Diff line change 2424import org .apache .axis2 .transport .http .HTTPConstants ;
2525import org .apache .commons .logging .Log ;
2626import org .apache .commons .logging .LogFactory ;
27+ import org .osgi .annotation .bundle .Capability ;
2728import org .wso2 .carbon .CarbonConstants ;
2829import org .wso2 .carbon .base .ServerConfiguration ;
2930import org .wso2 .carbon .base .api .ServerConfigurationService ;
5556/**
5657 * Admin service to manage server related operations
5758 */
59+ @ Capability (
60+ namespace = "osgi.service" ,
61+ attribute = {
62+ "objectClass=org.wso2.carbon.server.admin.common.IServerAdmin" ,
63+ "service.scope=singleton"
64+ }
65+ )
5866public class ServerAdmin extends AbstractAdmin implements ServerAdminMBean , IServerAdmin {
5967 private static final Log log = LogFactory .getLog (ServerAdmin .class );
6068 private static final int SECONDS_PER_DAY = 3600 * 24 ;
Original file line number Diff line number Diff line change 1919
2020import org .apache .commons .logging .Log ;
2121import org .apache .commons .logging .LogFactory ;
22+ import org .osgi .annotation .bundle .Capability ;
2223
2324import java .util .List ;
2425import java .util .concurrent .ConcurrentHashMap ;
4142 * This class maintains two maps to maintain valid sessions and invalid sessions. This class is
4243 * implemented as a singleton because there should be only one SSOSessionManager per instance.
4344 */
45+ @ Capability (
46+ namespace = "osgi.service" ,
47+ attribute = {
48+ "objectClass=org.wso2.carbon.ui.CarbonSSOSessionManager" ,
49+ "service.scope=singleton"
50+ }
51+ )
4452public class CarbonSSOSessionManager {
4553
4654 private static Log log = LogFactory .getLog (CarbonSSOSessionManager .class );
Original file line number Diff line number Diff line change 1919
2020import org .apache .commons .logging .Log ;
2121import org .apache .commons .logging .LogFactory ;
22+ import org .osgi .annotation .bundle .Capability ;
2223import org .wso2 .carbon .caching .impl .CachingConstants ;
2324import org .wso2 .carbon .caching .impl .Util ;
2425import org .wso2 .carbon .user .api .RealmConfiguration ;
5152
5253import static org .wso2 .carbon .user .core .constants .UserCoreErrorConstants .ErrorMessages .ERROR_CODE_DUPLICATE_ERROR_WHILE_ADDING_CLAIM_MAPPINGS ;
5354
55+ @ Capability (
56+ namespace = "osgi.service" ,
57+ attribute = {
58+ "objectClass=org.wso2.carbon.user.core.UserRealm" ,
59+ "service.scope=singleton"
60+ }
61+ )
5462public class DefaultRealm implements UserRealm {
5563
5664 private static Log log = LogFactory .getLog (DefaultRealm .class );
You can’t perform that action at this time.
0 commit comments