public class DefaultRequiredInterface extends Object implements RequiredInterface
Constructor and Description |
---|
DefaultRequiredInterface(String aName,
Class aInterface)
Creates a new DefaultRequiredInterface object.
|
DefaultRequiredInterface(String aName,
Class[] aInterfaces)
Creates a new DefaultRequiredInterface object.
|
DefaultRequiredInterface(String aName,
Class[] aInterfaces,
boolean aIsOptional)
Creates a new DefaultRequiredInterface object.
|
DefaultRequiredInterface(String aName,
Class aInterface,
boolean aIsOptional)
Creates a new DefaultRequiredInterface object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
covers(RequiredInterface aObject)
Determines if the requirements of the current interface are at least
those of the given required interface.
|
boolean |
equals(Object aObject) |
String |
getName()
Name for the interface.
|
ProvidedInterface |
getProvider()
Gets the provider interface.
|
int |
hashCode() |
boolean |
implementedBy(ProvidedInterface aDescriptor)
Checks if the service is provided by a given provided interface.
|
boolean |
isOptional() |
void |
setProvider(ProvidedInterface aProvider)
Sets the provider of this interface.
|
String |
toString() |
public DefaultRequiredInterface(String aName, Class aInterface)
public DefaultRequiredInterface(String aName, Class[] aInterfaces)
public DefaultRequiredInterface(String aName, Class aInterface, boolean aIsOptional)
public String getName()
NamedInterface
getName
in interface NamedInterface
public boolean isOptional()
isOptional
in interface RequiredInterface
public boolean implementedBy(ProvidedInterface aDescriptor)
RequiredInterface
implementedBy
in interface RequiredInterface
aDescriptor
- Provided interface.public ProvidedInterface getProvider()
RequiredInterface
getProvider
in interface RequiredInterface
public void setProvider(ProvidedInterface aProvider)
RequiredInterface
setProvider
in interface RequiredInterface
aProvider
- Provider.public boolean covers(RequiredInterface aObject)
RequiredInterface
covers
in interface RequiredInterface
Copyright © 2022. All rights reserved.