mudbeans.groovy

groovy/scripts/commands/creator/mudbeans.groovy · 377 B

From the archive groovymud-0.3.4-alpha-bin.tar.gz

Download the archive   « Back to the archive contents

/**
 * 
 */
package commands.creator

import org.groovymud.object.MudObject
import org.springframework.beans.factory.BeanFactoryUtils
def stream = source.getTerminalOutput()

try{
	BeanFactoryUtils.beanNamesForTypeIncludingAncestors(context, MudObject).eachWithIndex{ name, idx ->
		stream.writeln("$name")
	}
}catch(Exception e ){
	stream.writeln(e.getMessage())
}

Site Stats

Snippets: 1791
Codebases: 571