[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Extending Application Admin implementation

    Problem solved.

    I can obtain the state of the locked variable through the getProperties() method, which overwrites the value of APPLICATION_LOCKED property with the value I need.

    Sorry for the noise.

Miguel García Longarón wrote:
    Hi again:

    I have realize that I really don't need the isLocked method as it 
is. I would recommend rename the isLocked method to isPersistentlyLocked 
(and maintain it private), and create a new isLocked method which return 
the current value of locked[0];

    Now I'm using a local variable in the ApplicationDescriptor 
extension class, with the same purpose that locked[0] has. I'd prefer to 
know the state of locked[0] to avoid having the same state in two places.

    Best regards,

Miguel García Longarón wrote:
    Hi all:

    I'm extending the Equinox Application Admin implementation to build 
my own application model. I'm wondering why the 
ApplicationDescriptor.isLocked() method is declared "private" instead 
of  "protected". It'd would very useful to access this method from my 
extension of ApplicationDescriptor. Is there some reason to maintain 
this method private?

    Best regards,




Miguel García Longarón
Ingeniero I+D
División de Automóvil Conectado

Telefónica Investigación y Desarrollo
Emilio Vargas, 6
28043 Madrid
Tel: (+34) 91 337 99 91
Fax: (+34) 91 337 44 91
Correo-e: mgl@xxxxxx
Internet: www.tid.es