Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-12135 - Support for AttributeConverters as CDI beans
initial work to get AttributeConverter support to be able to integrate with ManagedBeanRegistry. There is a lot of "infrastructure" changes because the old code assumed we could instantiate the converter as soon as we knew the class which precludes lookup in the registry later.
- Loading branch information
Showing
76 changed files
with
1,937 additions
and
955 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
hibernate-core/src/main/java/org/hibernate/boot/AttributeConverterInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,24 @@ | |||
/* | |||
* Hibernate, Relational Persistence for Idiomatic Java | |||
* | |||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | |||
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html | |||
*/ | |||
package org.hibernate.boot; | |||
|
|||
import javax.persistence.AttributeConverter; | |||
|
|||
import org.hibernate.boot.model.convert.spi.ConverterDescriptor; | |||
import org.hibernate.boot.spi.MetadataBuildingContext; | |||
|
|||
/** | |||
* Delayed information about an AttributeConverter. Delayed until we have | |||
* access to {@link org.hibernate.boot.internal.ClassmateContext} during | |||
* the MetadataSources -> Metadata process. | |||
* | |||
* @author Steve Ebersole | |||
*/ | |||
public interface AttributeConverterInfo { | |||
Class<? extends AttributeConverter> getConverterClass(); | |||
ConverterDescriptor toConverterDescriptor(MetadataBuildingContext context); | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
199 changes: 0 additions & 199 deletions
199
...n/java/org/hibernate/boot/internal/AttributeConverterDescriptorNonAutoApplicableImpl.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.