Class DefaultFunctionProject
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.appservice.function.core.FunctionProject
-
- com.microsoft.azure.toolkit.lib.appservice.function.impl.DefaultFunctionProject
-
public class DefaultFunctionProject extends FunctionProject
-
-
Constructor Summary
Constructors Constructor Description DefaultFunctionProject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionAnnotationcreate(Annotation annotation)private static FunctionAnnotationcreate(Annotation annotation, boolean resolveAnnotationType)static FunctionMethodcreate(Method method)List<FunctionMethod>findAnnotatedMethods()private static Set<Method>findFunctions(List<URL> urls)private URLgetArtifactUrl()private static ClassLoadergetClassLoader(List<URL> urlList)private List<URL>getDependencyArtifactUrls()private static FunctionCoreToolsHandlergetFunctionCoreToolsHandler(CommandHandler commandHandler)private URLgetTargetClassUrl()voidinstallExtension(String funcPath)private static FunctionAnnotationClasstoFunctionAnnotationClass(Class<? extends Annotation> clz)
-
-
-
Method Detail
-
findAnnotatedMethods
public List<FunctionMethod> findAnnotatedMethods()
- Specified by:
findAnnotatedMethodsin classFunctionProject
-
installExtension
public void installExtension(String funcPath)
- Specified by:
installExtensionin classFunctionProject
-
getFunctionCoreToolsHandler
private static FunctionCoreToolsHandler getFunctionCoreToolsHandler(CommandHandler commandHandler)
-
getTargetClassUrl
private URL getTargetClassUrl() throws MalformedURLException
- Throws:
MalformedURLException
-
getDependencyArtifactUrls
private List<URL> getDependencyArtifactUrls()
- Returns:
- URLs for the classpath with compile scope needed jars
-
getClassLoader
private static ClassLoader getClassLoader(List<URL> urlList)
-
getArtifactUrl
private URL getArtifactUrl() throws MalformedURLException
- Throws:
MalformedURLException
-
create
public static FunctionAnnotation create(@Nonnull Annotation annotation)
-
create
public static FunctionMethod create(Method method)
-
create
private static FunctionAnnotation create(@Nonnull Annotation annotation, boolean resolveAnnotationType)
-
toFunctionAnnotationClass
private static FunctionAnnotationClass toFunctionAnnotationClass(Class<? extends Annotation> clz)
-
-