All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kie.eclipse.server.KieSpaceHandler Maven / Gradle / Ivy

There is a newer version: 7.48.0.Final
Show newest version
/*******************************************************************************
 * Copyright (c) 2011, 2012, 2013, 2014 Red Hat, Inc.
 *  All rights reserved.
 * This program is made available under the terms of the
 * Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Red Hat, Inc. - initial API and implementation
 *
 ******************************************************************************/

package org.kie.eclipse.server;

import java.util.List;

/**
 *
 */
public class KieSpaceHandler extends KieResourceHandler implements IKieSpaceHandler {

	/**
	 * 
	 */
	public KieSpaceHandler(IKieServerHandler service, String name) {
		super(service, name);
	}

	@Override
	public Object getResource() {
		return properties;
	}

	public List getChildren() throws Exception {
		if (children==null || children.isEmpty()) {
			children = getDelegate().getRepositories(this);
		}
		return children;
	}
	
	public boolean isLoaded() {
		return true;
	}
	
	public List getRepositories() throws Exception {
		return (List) getChildren();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy