Commit Graph

27 Commits

Author SHA1 Message Date
Dave Syer
3ccb925733 Merge core packages into one 2017-09-15 17:10:00 +01:00
Oleg Zhurakousky
37fc3e6c65 Removed EmptyIterable
- Removed EmptyIterable as it's only used by _MemoryBasedJavaFileManager_
to ensure the contract of the _list(..)_ operation that must not return
null. The same contract is ensured with _new
IterableClasspath(classpath, packageName, recurse)_ while making
_MemoryBasedJavaFileManager.list(..)_ simpler and more consistent.
- Untill this fix the AbstractByteCodeLoadingProxy was building FQCN of
the byte-array defined class using Resource.getFileName() and then some,
which is not very reliable since if such name does not match the actual
name contained in the byte code, class loading will result in exception.
So, this fix reads FQCN from the actual byte code..
- Reduced visibility of AbstractByteCodeLoadingProxy
- Simplified ByteCodeLoadingFunctionTests

Closes gh-99
2017-09-15 16:30:12 +01:00
Andy Clement
a004242089 Fix #87 - normalize to forward slashes
On windows when walking through jar contents some files use
forward slashes and some backslashes. With this change we
switch to a consistent usage of forward slashes throughout
(converting backslashes to forward when necessary). With these
changes the testsuites work on windows.
2017-08-29 19:10:23 -04:00
Oleg Zhurakousky
a973b678f1 FunctionUtils polishing
- attempted to make code more functional (eat our own dog food) and concise
- addressed PR comment
- additional cleanup/polishing of FunctionUtils and related classes
- Removed Function/Supplier/ConsumerProxy classes by extending type info on their super interface
- Renamed FunctionUtils to FunctionFactoryUtils
- Added javadoc to FunctionFactoryUtils to explain its design considerations as well as what it can and can not doi

Fixes gh-90
2017-08-22 14:07:42 +01:00
Oleg Zhurakousky
20561ea987 CompiledFunctionRegistry cleanup 2017-08-15 10:56:57 -04:00
Oleg Zhurakousky
11b8654e09 AbstractFunctionCompiler cleanup
- removed Function/Supplier/ConsumerFactories by modifying SOURCE_CODE_TEMPLATE
- removed Example main from src/main/java/org.springframework.cloud.function.compiler
2017-08-15 10:45:43 -04:00
Andy Clement
2fdfda9416 Allow dependencies to be specified when compiling, using maven coords 2017-08-15 09:09:35 -04:00
Dave Syer
15f0a0bcc9 Add correct file path to compiler 2017-07-17 17:18:44 +01:00
Dave Syer
9bf3601143 Fixed consumer sample to accept bare string 2017-05-26 12:51:56 +01:00
Dave Syer
2a4c46f57b Remove unused methods in compiled functions 2017-05-26 10:28:43 +01:00
Dave Syer
99c7b995e0 Add FunctionFactoryMetadata interface for type discovery
The compiled functions implement that interface which means you can inspect
the signature of the method that created them and discover its
generic types.
2017-05-26 10:09:47 +01:00
markfisher
5a7c95bd97 add type info for compiled functions 2017-05-25 12:38:54 -04:00
markfisher
78a37ef8ad avoid NullPointerException for warning diagnostic 2017-05-23 08:08:41 -04:00
Dave Syer
da013c1015 Purge warnings in IDE 2017-03-14 18:21:41 +00:00
markfisher
6044b053ae renamed property keys 2017-03-03 16:35:30 -05:00
markfisher
19fd056a5e add support for simple (non-Flux) types
add objectToStringHttpMessageConverter

CompilerController accepts parameterized types
2017-02-24 12:14:57 -05:00
markfisher
d8e51dbb6e renamed bytecode resource property 2017-02-13 09:42:22 -05:00
markfisher
f20cff0fc8 added FunctionProxyApplicationListener
added support for lambda compiling Supplier and Consumer proxies
2017-02-06 15:56:51 -05:00
markfisher
9a5600f259 add support for compiling suppliers and consumers 2017-02-06 15:29:17 -05:00
markfisher
94a78bdc7f add Function compiling webapp and update scripts 2017-01-19 15:55:49 -05:00
markfisher
0fb31d6d2b removed FunctionRegistry 2017-01-11 21:23:02 -05:00
Dave Syer
7408664aeb Use classpath URLs from class loader instead of system property
The system property doesn't work for a bootiful jar. With this change
there is no need to scan the jar for nested jars either.
2017-01-03 08:24:44 -05:00
markfisher
588e68f014 updated Example 2016-10-14 20:48:05 -04:00
markfisher
b0db0233be add support for Supplier and Consumer 2016-10-14 20:40:48 -04:00
markfisher
b78024e7ea generate name per function to allow composition 2016-10-01 16:32:28 -04:00
markfisher
309993f0d4 file-based registry for serialized functions 2016-10-01 15:30:25 -04:00
markfisher
bdd39b74ff initial commit 2016-09-21 22:33:06 -04:00