org.sapia.soto
Class InstanceOfSelector

java.lang.Object
  extended by org.sapia.soto.InstanceOfSelector
All Implemented Interfaces:
ServiceSelector

public class InstanceOfSelector
extends java.lang.Object
implements ServiceSelector

Selects services that implement a given interface.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2004 Sapia Open Source Software . All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
InstanceOfSelector(java.lang.Class instanceOf)
           
 
Method Summary
 boolean accepts(ServiceMetaData meta)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceOfSelector

public InstanceOfSelector(java.lang.Class instanceOf)
Method Detail

accepts

public boolean accepts(ServiceMetaData meta)
Specified by:
accepts in interface ServiceSelector
Parameters:
meta - a ServiceMetadata.
Returns:
true if this instance determines that the given instance should be returned in the lookup result.
See Also:
ServiceSelector.accepts(org.sapia.soto.ServiceMetaData)


Copyright © 2010 Sapia OSS. All Rights Reserved.