|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Home interface defines the contract for instance access and release. A client of a home aquires object references by checking-out an instance by passing itself as a check-out token. When a client no-longer requires the instance it release the instance along by supplying itself as the identifiable consumer.
Method Summary | |
void |
release(Object source,
Object instance)
Release an object |
Object |
resolve(Object source)
Resolve a object to a value. |
Object |
resolve(Object source,
Class[] ref)
Resolve a object to a value relative to a supplied set of interface classes. |
Method Detail |
public Object resolve(Object source) throws Exception
source
- the context within the the resolution is applied
Exception
- if an error occurspublic Object resolve(Object source, Class[] ref) throws Exception
source
- the aquiring sourceref
- the castable service classes
Exception
- if an error occurspublic void release(Object source, Object instance)
source
- the client that obtained the intial referenceinstance
- the object to be released
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |