Controling Java Slice package names.

vinceivincei Vincent IbeachumOrganization: Sherman ObservatoryProject: Remote Observatory ControlMember ✭✭
Hi,

I have the following:
#ifndef INVOKE_ICE
#define INVOKE_ICE

#include <Ice/Identity.ice>

module SuperServiceObjects
{
 ...
};

Running Slice2java I get in one of my source files:

// Ice version 3.3.0

package SuperServiceObjects;

public final class IntDictHolder
{
    public
    IntDictHolder()
    {
    }

    public
    IntDictHolder(java.util.Map<java.lang.String, java.lang.Integer> value)
    {
        this.value = value;
    }

    public java.util.Map<java.lang.String, java.lang.Integer> value;
}


My question is how do I control the package to which the Java code belongs?
i.e if I wanted package com.observatory.dome.SuperServiceObjects
thus:


// Ice version 3.3.0

package com.observatory.dome.SuperServiceObjects;

public final class IntDictHolder
{
    public
    IntDictHolder()
    {
    }

    public
    IntDictHolder(java.util.Map<java.lang.String, java.lang.Integer> value)
    {
        this.value = value;
    }

    public java.util.Map<java.lang.String, java.lang.Integer> value;
}


If this is a basic question forgive me. I tried putting the module in nested namespaces but the slice compiler didn't seem to like that...

Thanks,
Vince

Comments

Sign In or Register to comment.