Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to use Spring property placeholder for cache-deserialized-values map config #8487

Closed
dsukhoroslov opened this issue Jun 30, 2016 · 2 comments

Comments

@dsukhoroslov
Copy link
Contributor

@dsukhoroslov dsukhoroslov commented Jun 30, 2016

Currently the system throws exception if I try to use property placeholder for this attribute.

the attribute specified as:

<xs:attribute name="cache-deserialized-values" use="optional" type="cache-deserialized"/>

    <xs:simpleType name="cache-deserialized">
        <xs:restriction base="non-space-string">
            <xs:enumeration value="NEVER"/>
            <xs:enumeration value="ALWAYS"/>
            <xs:enumeration value="INDEX-ONLY"/>
        </xs:restriction>
    </xs:simpleType>

it'd be better to specify the type as

    <xs:simpleType name="cache-deserialized-type">
        <xs:union memberTypes="cache-deserialized non-space-string"/>
    </xs:simpleType>
@dsukhoroslov
Copy link
Contributor Author

@dsukhoroslov dsukhoroslov commented Feb 2, 2017

with the new parameterizedValueType introduced in hazelcast-string-3.8.xsd the attribute definition should be:

<xs:attribute name="cache-deserialized-values" use="optional" type="parameterized-cache-deserialized"/>

<xs:simpleType name="parameterized-cache-deserialized">
    <xs:union memberTypes="cache-deserialized parameterizedValueType"/>
</xs:simpleType>

any chance to add it in 3.8?

@emrahkocaman
Copy link
Contributor

@emrahkocaman emrahkocaman commented Aug 22, 2017

Thanks for reporting @dsukhoroslov . It didn't make it to 3.8 unfortunately, but will be available with 3.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

5 participants
You can’t perform that action at this time.