/*
 * Copyright (C) 2014,2015 The Cat Hive Developers.
 *
 * Licensed under the Apache 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
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * 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.
 */

package com.cathive.sass;

import javax.annotation.PreDestroy;
import javax.inject.Named;
import javax.inject.Singleton;

/**
 * A service that can be used to compile .scss files.
 * @author Benjamin P. Jung
 */
@Named("sassService")
@Singleton
public class SassService {

    /**
     * Default constructor.
     * <p>Creates a new libsass service instance.</p>
     */
    public SassService() {
        super();
    }


    @PreDestroy
    protected void dispose() {
        // TODO Free all native handles correctly.
    }

}

@@ -634,16 +634,94 @@
 .sass;%0A%0A
+import org.libsass.sassc.SassLibrary;%0A%0Aimport javax.annotation.PostConstruct;%0A
 import j
@@ -805,16 +805,81 @@
 ngleton;
+%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;
 %0A%0A/**%0A *
@@ -1023,16 +1023,139 @@
 vice %7B%0A%0A
+    /** Logger for this class. */%0A    private static final Logger LOGGER = Logger.getLogger(SassService.class.getName());%0A%0A
     /**%0A
@@ -1206,20 +1206,17 @@
 s a new 
-libs
+S
 ass serv
@@ -1293,16 +1293,220 @@
     %7D%0A%0A%0A
+    @PostConstruct%0A    protected void initialize() %7B%0A        LOGGER.log(Level.INFO, %22Initializing libsass/SassC wrapper (libsass_version() -%3E %5C%22%7B0%7D%5C%22)...%22, SassLibrary.INSTANCE.libsass_version());%0A    %7D%0A%0A
     @Pre

Add logging to SassService stub.