Next in thread → Next in month →

Re: [sca-j] JAVA-65 - SCA Lifecyle proposal

From
Mike Edwards <>
Date
2008-11-26T14:52:01+00:00
ID
Thread
Re: [sca-j] JAVA-65 - SCA Lifecyle proposal
Folks,

First, thanks to Mark for a lot of hard
work putting this proposal material together.

When I read the proposal, my reaction
is as it had been back at the F2F meeting:

"too complex"

Basically, I cannot understand the need
for the @PostInit  and @PreDestroy methods.

Do we really need these?  What's
the use case?

I argue for a simpler model, where there
are only @Init and @Destroy methods:

- Construction occurs

- Injection occurs, Properties then
References

- @Init processing occurs

- Running - Services can be called

- @Destroy processing occurs

- Garbage collection

References are usable anytime between
invocation of the @Init method and the

termination of the @Destroy method.
 Services will ONLY be dispatched on the

instance AFTER @Init processing completes
and BEFORE @Destroy method

is invoked.

I note that initialization CAN occur
either in construction or in injection processing,

although not of the type that involves
invoking references.  Other initialization can

occur in @Init, with references available...

Why would we need anything more than
this?

Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.

Co Chair OASIS SCA Assembly TC.

IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.

Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  

Email:  

From:
"Mark Combellack" <>

To:
"OASIS Java" <>

Date:
26/11/2008 09:50

Subject:
[sca-j] JAVA-65 - SCA Lifecyle proposal

Hi,

 

Here is a proposal for JAVA-65 for the SCA
component implementation lifecycle. The proposal is based on the discussions
at the recent Face to Face meeting.

 

I have taken the CD01 version of the Java
CAA specification and updated it. The main changes are:

 

Section 4 - SCA component implementation
lifecycle

New section that describes the SCA lifecycle

 

Section 9.9 - @Destroy

Added a paragraph saying not allowed to use
injected references

Added link back to the lifecycle section

 

Section 9.12 - @Destroy

Added a paragraph saying not allowed to use
injected references

Added link back to the lifecycle section

 

New section 9.14 - @PreDestroy

Describes the @PreDestroy annotation

 

New section 9.16 - @PostInit

Describes the @PostInit annotation

 

 

I look forward to receiving your comments/feedback.

 

 

Thanks,

 

Mark

Mark Combellack|
Software Developer|
Avaya |
Eastern Business
Park | St.
Mellons | Cardiff
| CF3
5EA | Voice:
+44 (0) 29 2081 7624 |


 [attachment
"sca-javacaa-1.1-spec-cd01 plus JAVA-65 - SCA Lifecycle.doc"
deleted by Mike Edwards/UK/IBM] ---------------------------------------------------------------------

To unsubscribe from this mail list, you must leave the OASIS TC that

generates this mail.  Follow this link to all your TCs in OASIS at:

https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php

Unless stated otherwise above:

IBM United Kingdom Limited - Registered in England and Wales with number
741598. 

Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
Next in thread → Next in month →