|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.core.service.StandardServiceReference
public class StandardServiceReference
StandardServiceReference contains parameters that uniquely
identify a Service type or an instance within some scope.
This is useful for:
| Field Summary | |
|---|---|
protected String |
id
The identifier of the referenced Service |
protected Class |
type
The Class indicating the Service type |
| Constructor Summary | |
|---|---|
StandardServiceReference(String id,
Class type)
Create a new StandardServiceReference. |
|
| Method Summary | |
|---|---|
String |
getId()
Get the identifier of the referenced Service. |
Class |
getType()
Get the type of the referenced Service. |
int |
hashCode()
Get the ServiceReference hashcode. |
boolean |
matches(Service service)
Check to see if a Service matches this ServiceReference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected Class type
| Constructor Detail |
|---|
public StandardServiceReference(String id,
Class type)
id - the service identifier (or null to reference a Service by
only it's type).type - the Class corresponding the the Service type.| Method Detail |
|---|
public String getId()
getId in interface ServiceReferencepublic Class getType()
getType in interface ServiceReferencepublic boolean matches(Service service)
matches in interface ServiceReferenceservice - the Service instance.
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||