G
Guy
I have the foollowing class:
public class MediVisitInstallConst
{
public static class Bean
{
public static String CONFIG_MI = "beanConfig_MI";
public static String DB_MI_ID = "beanInfraBD";
public static String DB_MV_ID = "beanMediVisitBD";
public static String DICT_MI = "beanDict_MI";
public static String DICT_MV = "beanDict_MV";
....etc
I invoke it in my code as
function( arg1, MediVisitInstallConst.CONFIG_MI,...etc);
It works, but I find the static class name rather long, and would to
use a nickname for it;
I try to declare:
MediVisitInstallConst const;
But when I try to use it:
function( arg1, const.CONFIG_MI,...etc), the compiler complains:
"unexpected type: required class, package, fond variable"
The I try to "static" the whole class:
public static class MediVisitInstallConst
{
public static class Bean
{
The compiler complains: "modifier static not allowed here"
What am I doing wrong?
public class MediVisitInstallConst
{
public static class Bean
{
public static String CONFIG_MI = "beanConfig_MI";
public static String DB_MI_ID = "beanInfraBD";
public static String DB_MV_ID = "beanMediVisitBD";
public static String DICT_MI = "beanDict_MI";
public static String DICT_MV = "beanDict_MV";
....etc
I invoke it in my code as
function( arg1, MediVisitInstallConst.CONFIG_MI,...etc);
It works, but I find the static class name rather long, and would to
use a nickname for it;
I try to declare:
MediVisitInstallConst const;
But when I try to use it:
function( arg1, const.CONFIG_MI,...etc), the compiler complains:
"unexpected type: required class, package, fond variable"
The I try to "static" the whole class:
public static class MediVisitInstallConst
{
public static class Bean
{
The compiler complains: "modifier static not allowed here"
What am I doing wrong?