Object Security

  • Thread starter Thread starter Rodolfo
  • Start date Start date
R

Rodolfo

Can I make that an object to destroy himself?

I want to put some code in the constructor of a class (call to my security
service). If it doesn't have the permissions I want to not let the object be
instantiaded.

TIA
 
Rodolfo said:
Can I make that an object to destroy himself?

I want to put some code in the constructor of a class (call to my security
service). If it doesn't have the permissions I want to not let the object be
instantiaded.

TIA

Throw an exception in the constructor if the permissions aren't met.
 
Back
Top