Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2012 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
public class KimImplServiceLocator {
    private static final Logger LOG = Logger.getLogger(KimImplServiceLocator.class);
    public static final String KIM_RUN_MODE_PROPERTY = "kim.mode";
    public static final String RESPONSIBILITY_INTERNAL_SERVICE = "responsibilityInternalService";
    public static final String GROUP_INTERNAL_SERVICE = "groupInternalService";
    public static final String ROLE_INTERNAL_SERVICE = "kimRoleInternalService";
    public static final String LOCAL_CACHE_MANAGER = "kimLocalCacheManager";
    public static final String KIM_ROLE_DAO = "kimRoleDao";
    public static Object getService(String serviceName) {
        return getBean(serviceName);
    public static Object getBean(String serviceName) {
        if (.isDebugEnabled()) {
            .debug("Fetching service " + serviceName);
        QName name = new QName(serviceName);
        RunMode kimRunMode = RunMode.valueOf(ConfigContext.getCurrentContextConfig().getProperty());
        if (kimRunMode == . || kimRunMode == .) {
            name = new QName(.serviceName);
        return GlobalResourceLoader.getResourceLoader().getService(name);
    public static GroupInternalService getGroupInternalService() {
    public static RoleInternalService getRoleInternalService() {
    public static CacheManager getLocalCacheManager() {
        return (CacheManagergetService();
    public static RoleDao getRoleDao() {
        return (RoleDaogetService();
New to GrepCode? Check out our FAQ X