|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.context.ServiceEntry
public class ServiceEntry
A ServiceEntry
describes the attributes of a service entry in a
specific context. It provides access to the service itself as well as
information about the location, the type and the distance.
Constructor Summary | |
---|---|
ServiceEntry(int distance,
Context origin,
java.lang.Object service,
java.lang.Class<?> type)
Constructs a ServiceEntry . |
Method Summary | |
---|---|
int |
getDistance()
Returns the distance, where distance is defined as the number of hierarchical steps between the owner context and the context the service was originally placed into. |
Context |
getOrigin()
Returns the context where the service was originally placed into. |
java.lang.Object |
getService()
Returns the service implementation. |
java.lang.Class<?> |
getType()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceEntry(int distance, Context origin, java.lang.Object service, java.lang.Class<?> type)
ServiceEntry
.
distance
- the distance is defined as the number of hierarchical
steps between the owner context and the context the service
was originally placed into.origin
- the context the service was originally placed intoservice
- the service implementationtype
- the service type that will be used as the lookup keyMethod Detail |
---|
public Context getOrigin()
public int getDistance()
public java.lang.Object getService()
public java.lang.Class<?> getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |