io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem Java Examples
The following examples show how to use
io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Aws2CwProcessor.java From camel-quarkus with Apache License 2.0 | 7 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #2
Source File: AwsSdbProcessor.java From camel-quarkus with Apache License 2.0 | 7 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDB_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<NativeImageResourceBuildItem> resource) { resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json")); reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, Partitions.class.getCanonicalName(), Partition.class.getCanonicalName(), Endpoint.class.getCanonicalName(), Region.class.getCanonicalName(), Service.class.getCanonicalName(), CredentialScope.class.getCanonicalName(), QueryStringSigner.class.getCanonicalName(), AWS4Signer.class.getCanonicalName())); }
Example #3
Source File: Aws2MqProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #4
Source File: ActiveMQProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep ReflectiveClassBuildItem registerForReflection() { return new ReflectiveClassBuildItem(true, false, "org.apache.activemq.pool.PooledConnectionFactory", "org.apache.commons.pool2.impl.DefaultEvictionPolicy", "org.apache.activemq.openwire.v2.MarshallerFactory", "org.apache.activemq.openwire.v3.MarshallerFactory", "org.apache.activemq.openwire.v4.MarshallerFactory", "org.apache.activemq.openwire.v5.MarshallerFactory", "org.apache.activemq.openwire.v6.MarshallerFactory", "org.apache.activemq.openwire.v7.MarshallerFactory", "org.apache.activemq.openwire.v8.MarshallerFactory", "org.apache.activemq.openwire.v9.MarshallerFactory", "org.apache.activemq.openwire.v10.MarshallerFactory", "org.apache.activemq.openwire.v11.MarshallerFactory", "org.apache.activemq.openwire.v12.MarshallerFactory"); }
Example #5
Source File: Aws2TranslateProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #6
Source File: Aws2S3Processor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #7
Source File: Aws2EksProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #8
Source File: XmlSupportProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep void reflective(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) { reflectiveClass.produce( new ReflectiveClassBuildItem( false, false, "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl", "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl", "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl", "com.sun.org.apache.xerces.internal.parsers.SAXParser", "com.sun.xml.internal.stream.XMLInputFactoryImpl", "com.sun.xml.internal.stream.XMLOutputFactoryImpl")); reflectiveClass.produce( new ReflectiveClassBuildItem( false, false, "org.apache.camel.converter.jaxp.XmlConverter")); // javax.xml.namespace.QName is needed as it is used as part of the processor // definitions in the DSL and parsers like Jackson (used in camel-k YAML DSL) // fails if this class is cannot be instantiated reflectively. reflectiveClass.produce( new ReflectiveClassBuildItem(true, false, "javax.xml.namespace.QName")); }
Example #9
Source File: DeploymentProcessor.java From camel-k-runtime with Apache License 2.0 | 6 votes |
@BuildStep void registerServices( BuildProducer<ServiceProviderBuildItem> serviceProvider, BuildProducer<ReflectiveClassBuildItem> reflectiveClass, CombinedIndexBuildItem combinedIndexBuildItem) { final IndexView view = combinedIndexBuildItem.getIndex(); final String serviceType = "org.apache.camel.k.Runtime$Listener"; getAllKnownImplementors(view, serviceType).forEach(i -> { serviceProvider.produce( new ServiceProviderBuildItem( serviceType, i.name().toString()) ); }); }
Example #10
Source File: GoogleDriveProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep void registerForReflection(BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<UnbannedReflectiveBuildItem> unbannedClass, CombinedIndexBuildItem combinedIndex) { IndexView index = combinedIndex.getIndex(); // Google drive component configuration class reflection Collection<AnnotationInstance> uriParams = index .getAnnotations(DotName.createSimple("org.apache.camel.spi.UriParams")); String[] googleDriveConfigClasses = uriParams.stream() .map(annotation -> annotation.target()) .filter(annotationTarget -> annotationTarget.kind().equals(AnnotationTarget.Kind.CLASS)) .map(annotationTarget -> annotationTarget.asClass().name().toString()) .filter(className -> className.startsWith("org.apache.camel.component.google.drive")) .toArray(String[]::new); reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, googleDriveConfigClasses)); unbannedClass.produce(new UnbannedReflectiveBuildItem(googleDriveConfigClasses)); }
Example #11
Source File: Aws2SnsProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #12
Source File: Aws2SesProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #13
Source File: FhirProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep() ReflectiveClassBuildItem fhirEndpointConfiguration() { return new ReflectiveClassBuildItem(true, true, FhirCreateEndpointConfiguration.class, FhirCapabilitiesEndpointConfiguration.class, FhirDeleteEndpointConfiguration.class, FhirHistoryEndpointConfiguration.class, FhirLoadPageEndpointConfiguration.class, FhirMetaEndpointConfiguration.class, FhirOperationEndpointConfiguration.class, FhirPatchEndpointConfiguration.class, FhirReadEndpointConfiguration.class, FhirSearchEndpointConfiguration.class, FhirTransactionEndpointConfiguration.class, FhirUpdateEndpointConfiguration.class, FhirValidateEndpointConfiguration.class, FhirConfiguration.class); }
Example #14
Source File: Aws2EcsProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #15
Source File: Aws2MskProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #16
Source File: GoogleMailProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep void registerForReflection(BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<UnbannedReflectiveBuildItem> unbannedClass, CombinedIndexBuildItem combinedIndex) { IndexView index = combinedIndex.getIndex(); // Google mail component configuration class reflection Collection<AnnotationInstance> uriParams = index .getAnnotations(DotName.createSimple("org.apache.camel.spi.UriParams")); String[] googleMailConfigClasses = uriParams.stream() .map(annotation -> annotation.target()) .filter(annotationTarget -> annotationTarget.kind().equals(AnnotationTarget.Kind.CLASS)) .map(annotationTarget -> annotationTarget.asClass().name().toString()) .filter(className -> className.startsWith("org.apache.camel.component.google.mail")) .toArray(String[]::new); reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, googleMailConfigClasses)); unbannedClass.produce(new UnbannedReflectiveBuildItem(googleMailConfigClasses)); }
Example #17
Source File: Aws2Ec2Processor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #18
Source File: Aws2KmsProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #19
Source File: GoogleCalendarProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep void registerForReflection(BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<UnbannedReflectiveBuildItem> unbannedClass, CombinedIndexBuildItem combinedIndex) { IndexView index = combinedIndex.getIndex(); // Google calendar component configuration class reflection Collection<AnnotationInstance> uriParams = index .getAnnotations(DotName.createSimple("org.apache.camel.spi.UriParams")); String[] googleDriveConfigClasses = uriParams.stream() .map(annotation -> annotation.target()) .filter(annotationTarget -> annotationTarget.kind().equals(AnnotationTarget.Kind.CLASS)) .map(annotationTarget -> annotationTarget.asClass().name().toString()) .filter(className -> className.startsWith("org.apache.camel.component.google.calendar")) .toArray(String[]::new); reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, googleDriveConfigClasses)); unbannedClass.produce(new UnbannedReflectiveBuildItem(googleDriveConfigClasses)); }
Example #20
Source File: GoogleSheetsProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep void registerForReflection(BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<UnbannedReflectiveBuildItem> unbannedClass, CombinedIndexBuildItem combinedIndex) { IndexView index = combinedIndex.getIndex(); // Google sheets component configuration class reflection Collection<AnnotationInstance> uriParams = index .getAnnotations(DotName.createSimple("org.apache.camel.spi.UriParams")); String[] googleMailConfigClasses = uriParams.stream() .map(annotation -> annotation.target()) .filter(annotationTarget -> annotationTarget.kind().equals(AnnotationTarget.Kind.CLASS)) .map(annotationTarget -> annotationTarget.asClass().name().toString()) .filter(className -> className.startsWith("org.apache.camel.component.google.sheets")) .toArray(String[]::new); reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, googleMailConfigClasses)); unbannedClass.produce(new UnbannedReflectiveBuildItem(googleMailConfigClasses)); }
Example #21
Source File: Aws2AthenaProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #22
Source File: Aws2IamProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses, BuildProducer<NativeImageResourceBuildItem> resource) { INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path))); List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex() .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME) .stream() .map(c -> c.name().toString()).collect(Collectors.toList()); reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()]))); reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, String.class.getCanonicalName())); }
Example #23
Source File: JtaProcessor.java From camel-quarkus with Apache License 2.0 | 6 votes |
@BuildStep void transactedPolicy( BuildProducer<AdditionalBeanBuildItem> additionalBeans, BuildProducer<ReflectiveClassBuildItem> reflectiveClass, Capabilities capabilities) { if (capabilities.isCapabilityPresent(Capabilities.TRANSACTIONS)) { AdditionalBeanBuildItem.Builder builder = AdditionalBeanBuildItem.builder(); builder.addBeanClass(RequiredJtaTransactionPolicy.class); builder.addBeanClass(RequiresNewJtaTransactionPolicy.class); builder.addBeanClass(MandatoryJtaTransactionPolicy.class); builder.addBeanClass(NeverJtaTransactionPolicy.class); builder.addBeanClass(NotSupportedJtaTransactionPolicy.class); builder.addBeanClass(SupportsJtaTransactionPolicy.class); additionalBeans.produce(builder.build()); reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, IllegalStateException.class.getName())); } }
Example #24
Source File: AwsKinesisProcessor.java From camel-quarkus with Apache License 2.0 | 5 votes |
@BuildStep(applicationArchiveMarkers = { AWS_KINESIS_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<NativeImageResourceBuildItem> resource) { resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json")); reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, Partitions.class.getCanonicalName(), Partition.class.getCanonicalName(), Endpoint.class.getCanonicalName(), Region.class.getCanonicalName(), Service.class.getCanonicalName(), CredentialScope.class.getCanonicalName())); }
Example #25
Source File: AwsLambdaProcessor.java From camel-quarkus with Apache License 2.0 | 5 votes |
@BuildStep(applicationArchiveMarkers = { AWS_LAMBDA_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<NativeImageResourceBuildItem> resource) { resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json")); reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, Partitions.class.getCanonicalName(), Partition.class.getCanonicalName(), Endpoint.class.getCanonicalName(), Region.class.getCanonicalName(), Service.class.getCanonicalName(), CredentialScope.class.getCanonicalName())); }
Example #26
Source File: DeploymentSupport.java From camel-k-runtime with Apache License 2.0 | 5 votes |
public static ReflectiveClassBuildItem reflectiveClassBuildItem(boolean methods, boolean fields, ClassInfo... classInfos) { return new ReflectiveClassBuildItem( methods, fields, Stream.of(classInfos) .map(ClassInfo::name) .map(DotName::toString) .toArray(String[]::new) ); }
Example #27
Source File: SupportGoogleHTTPClientProcessor.java From camel-quarkus with Apache License 2.0 | 5 votes |
@BuildStep void registerForReflection(BuildProducer<ReflectiveClassBuildItem> reflectiveClass, CombinedIndexBuildItem combinedIndex) { IndexView index = combinedIndex.getIndex(); // Google client API class reflection for JSON serialization / deserialization String[] googleApis = index.getAllKnownSubclasses(DotName.createSimple("com.google.api.client.util.GenericData")) .stream() .map(classInfo -> classInfo.name().toString()) .toArray(String[]::new); reflectiveClass.produce(new ReflectiveClassBuildItem(false, true, googleApis)); }
Example #28
Source File: HttpClientProcessor.java From camel-quarkus with Apache License 2.0 | 5 votes |
@BuildStep void registerForReflection( CombinedIndexBuildItem index, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses) { IndexView view = index.getIndex(); for (ClassInfo info : view.getAllKnownSubclasses(HTTP_REQUEST_BASE_NAME)) { reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false, info.name().toString())); } }
Example #29
Source File: AwsEc2Processor.java From camel-quarkus with Apache License 2.0 | 5 votes |
@BuildStep(applicationArchiveMarkers = { AWS_EC2_APPLICATION_ARCHIVE_MARKERS }) void process(CombinedIndexBuildItem combinedIndexBuildItem, BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<NativeImageResourceBuildItem> resource) { resource.produce(new NativeImageResourceBuildItem("com/amazonaws/partitions/endpoints.json")); reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, Partitions.class.getCanonicalName(), Partition.class.getCanonicalName(), Endpoint.class.getCanonicalName(), Region.class.getCanonicalName(), Service.class.getCanonicalName(), CredentialScope.class.getCanonicalName())); }
Example #30
Source File: DeploymentSupport.java From camel-k-runtime with Apache License 2.0 | 5 votes |
public static ReflectiveClassBuildItem reflectiveClassBuildItem(ClassInfo... classInfos) { return new ReflectiveClassBuildItem( true, false, Stream.of(classInfos) .map(ClassInfo::name) .map(DotName::toString) .toArray(String[]::new) ); }