// Path: easyfxml/src/main/java/moe/tristan/easyfxml/api/FxmlComponent.java
// public interface FxmlComponent {
// 
//     FxmlFile getFile();
// 
//     Class<? extends FxmlController> getControllerClass();
// 
// }
// 
// Path: easyfxml/src/main/java/moe/tristan/easyfxml/api/FxmlStylesheet.java
// public interface FxmlStylesheet {
// 
//     /**
//      * @return the CSS file that composes the stylesheet as a {@link Path}. See {@link
//      * Resources#getResourcePath(String)}
//      */
//     Path getPath();
// 
//     /**
//      * This method is a sample implementation that should work in almost all general cases.
//      * <p>
//      * An {@link java.io.IOException} can be thrown in very rare cases.
//      * <p>
//      * If you encounter them, post an issue with system details.
//      *
//      * @return the CSS file in external form (i.e. with the file:/, http:/...) protocol info before it.
//      *
//      * @see Resources#getResourceURL(String)
//      * @see URL#toExternalForm()
//      */
//     default String getExternalForm() {
//         return Try.of(this::getPath)
//                   .map(Path::toUri)
//                   .mapTry(URI::toURL)
//                   .map(URL::toExternalForm)
//                   .get();
//     }
// 
// }
// 
// Path: easyfxml/src/test/java/moe/tristan/easyfxml/samples/panewithbutton/PaneWithButtonComponent.java
// @Component
// public class PaneWithButtonComponent implements FxmlComponent {
// 
//     @Override
//     public FxmlFile getFile() {
//         return () -> "PaneWithButton.fxml";
//     }
// 
//     @Override
//     public Class<? extends FxmlController> getControllerClass() {
//         return PaneWithButtonController.class;
//     }
// 
// }


import java.net.URISyntaxException;
import java.nio.file.Paths;
import java.util.Objects;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import moe.tristan.easyfxml.api.FxmlComponent;
import moe.tristan.easyfxml.api.FxmlStylesheet;
import moe.tristan.easyfxml.samples.panewithbutton.PaneWithButtonComponent;
/*
 * Copyright 2017 - 2019 EasyFXML project and contributors
 *
 *    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 moe.tristan.easyfxml;




@Component
public class TestFxUiManager extends FxUiManager {

    @Autowired
// Path: easyfxml/src/main/java/moe/tristan/easyfxml/api/FxmlComponent.java
// public interface FxmlComponent {
// 
//     FxmlFile getFile();
// 
//     Class<? extends FxmlController> getControllerClass();
// 
// }
// 
// Path: easyfxml/src/main/java/moe/tristan/easyfxml/api/FxmlStylesheet.java
// public interface FxmlStylesheet {
// 
//     /**
//      * @return the CSS file that composes the stylesheet as a {@link Path}. See {@link
//      * Resources#getResourcePath(String)}
//      */
//     Path getPath();
// 
//     /**
//      * This method is a sample implementation that should work in almost all general cases.
//      * <p>
//      * An {@link java.io.IOException} can be thrown in very rare cases.
//      * <p>
//      * If you encounter them, post an issue with system details.
//      *
//      * @return the CSS file in external form (i.e. with the file:/, http:/...) protocol info before it.
//      *
//      * @see Resources#getResourceURL(String)
//      * @see URL#toExternalForm()
//      */
//     default String getExternalForm() {
//         return Try.of(this::getPath)
//                   .map(Path::toUri)
//                   .mapTry(URI::toURL)
//                   .map(URL::toExternalForm)
//                   .get();
//     }
// 
// }
// 
// Path: easyfxml/src/test/java/moe/tristan/easyfxml/samples/panewithbutton/PaneWithButtonComponent.java
// @Component
// public class PaneWithButtonComponent implements FxmlComponent {
// 
//     @Override
//     public FxmlFile getFile() {
//         return () -> "PaneWithButton.fxml";
//     }
// 
//     @Override
//     public Class<? extends FxmlController> getControllerClass() {
//         return PaneWithButtonController.class;
//     }
// 
// }


// Path: easyfxml/src/test/java/moe/tristan/easyfxml/TestFxUiManager.java
import java.net.URISyntaxException;
import java.nio.file.Paths;
import java.util.Objects;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import moe.tristan.easyfxml.api.FxmlComponent;
import moe.tristan.easyfxml.api.FxmlStylesheet;
import moe.tristan.easyfxml.samples.panewithbutton.PaneWithButtonComponent;

/*
 * Copyright 2017 - 2019 EasyFXML project and contributors
 *
 *    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 moe.tristan.easyfxml;




@Component
public class TestFxUiManager extends FxUiManager {

    @Autowired
    private PaneWithButtonComponent paneWithButtonComponent;