public class SassCompiler extends Object implements SassCompilerMXBean, MBeanRegistration
| Modifier and Type | Field and Description |
|---|---|
static String |
OBJECT_NAME
Desired MBean object name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
compile(String inputPath,
String outputPath,
String[] includePath)
Compiles a given SCSS input file.
|
String |
getLibsassVersion()
Returns the version of the underlying native libsass implementation.
|
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
static ObjectInstance |
registerMBean()
Registers the SassCompiler MBean with the platform MBean server.
|
static void |
unregisterMBean()
Unregisters the SassCompiler MBean from the platform MBean server.
|
public static final String OBJECT_NAME
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister in interface MBeanRegistrationExceptionpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpublic void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistrationpublic String getLibsassVersion()
SassCompilerMXBeangetLibsassVersion in interface SassCompilerMXBeanpublic String compile(@Nonnull String inputPath, @Nullable String outputPath, @Nullable String[] includePath) throws IOException
SassCompilerMXBeancompile in interface SassCompilerMXBeaninputPath - Path to the input file.outputPath - Path to the output file. Can be null to skip the output
file creation. (The result will just be returned by this method then).includePath - All include paths that shall be searched when using @import statements
inside your SCSS files.IOException - If reading of the input file(s) or writing of the output file
fails.public static ObjectInstance registerMBean() throws Exception
Exception - If anything goes wrong during registration.Copyright © 2013–2015 The Cat Hive Developers. All rights reserved.