/*
* Copyright (C) 2013,2014 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.fx.inject.core;
import javax.enterprise.inject.Stereotype;
import javax.enterprise.util.Nonbinding;
import javax.interceptor.InterceptorBinding;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
/**
* This annotation is used to mark classes as FXML-based custom components.
*
* @author Benjamin P. Jung
*/
@Stereotype
@InterceptorBinding
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ METHOD, FIELD, PARAMETER, TYPE })
public @interface FXMLComponent {
public static final String LOCATION_UNSPECIFIED = "$$$LOCATION_UNSPECIFIED$$$";
public static final String RESOURCES_UNSPECIFIED = "$$$RESOURCES_UNSPECIFIED$$$";
public static final String CHARSET_UNSPECIFIED = "$$$CHARSET_UNSPECIFIED$$$";
/**
* Sets the location used to resolve relative path attribute values.
* @return
* The location used to resolve relative path attribute values.
* @see javafx.fxml.FXMLLoader#setLocation(java.net.URL)
*/
@Nonbinding
String location() default LOCATION_UNSPECIFIED;
/**
* Sets the resources used to resolve resource key attribute values.
* @return
* The resources used to resolve resource key attribute values.
* @see javafx.fxml.FXMLLoader#setResources(java.util.ResourceBundle)
*/
@Nonbinding
String resources() default RESOURCES_UNSPECIFIED;
/**
* Sets the character set used by the configured loader.
* @return
* The character set used by the configured loader.
* @see javafx.fxml.FXMLLoader#setCharset(java.nio.charset.Charset)
*/
@Nonbinding
String charset() default CHARSET_UNSPECIFIED;
}