Avoid "identity" behavior

View: New views
3 Messages — Rating Filter:   Alert me  

Avoid "identity" behavior

by Sergio Bossa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys,

is there a way to avoid the default "identity" behavior of Terracotta
clustered objects, that is, a way to have them behave like String
objects (and other primitives)?
Maybe some kind of marker interface?

Thanks,
Cheers,

Sergio B.

--
Sergio Bossa
Software Passionate and Open Source Enthusiast.
URL: http://www.linkedin.com/in/sergiob
_______________________________________________
tc-dev mailing list
tc-dev@...
http://lists.terracotta.org/mailman/listinfo/tc-dev

Re: Avoid "identity" behavior

by Alex Miller-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not really.  There is a central enum that controls the set of "tc  
literals".  There are various hard-coded behaviors that deal with tc  
literals so there is not any way to dynamically update that set.

What are you trying to achieve?


On Oct 8, 2009, at 7:21 AM, Sergio Bossa wrote:

> Hi guys,
>
> is there a way to avoid the default "identity" behavior of Terracotta
> clustered objects, that is, a way to have them behave like String
> objects (and other primitives)?
> Maybe some kind of marker interface?
>
> Thanks,
> Cheers,
>
> Sergio B.
>
> --
> Sergio Bossa
> Software Passionate and Open Source Enthusiast.
> URL: http://www.linkedin.com/in/sergiob
> _______________________________________________
> tc-dev mailing list
> tc-dev@...
> http://lists.terracotta.org/mailman/listinfo/tc-dev

_______________________________________________
tc-dev mailing list
tc-dev@...
http://lists.terracotta.org/mailman/listinfo/tc-dev

Re: Avoid "identity" behavior

by Sergio Bossa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 8, 2009 at 9:59 PM, Alex Miller <amiller@...> wrote:

> Not really.  There is a central enum that controls the set of "tc literals".
>  There are various hard-coded behaviors that deal with tc literals so there
> is not any way to dynamically update that set.

Okay, no worries ...

> What are you trying to achieve?

Putting it simply, I just wanted to roll out a custom String
implementation and have it behave like a primitive.

--
Sergio Bossa
Software Passionate and Open Source Enthusiast.
URL: http://www.linkedin.com/in/sergiob
_______________________________________________
tc-dev mailing list
tc-dev@...
http://lists.terracotta.org/mailman/listinfo/tc-dev