Package org.wildfly.service.descriptor
Interface ServiceDescriptor<T>
- Type Parameters:
T- the type of the value provided by the described service
- All Known Subinterfaces:
BinaryServiceDescriptor<T>,BinaryServiceDescriptor.Provider<T>,NullaryServiceDescriptor<T>,NullaryServiceDescriptor.Provider<T>,QuaternaryServiceDescriptor<T>,QuaternaryServiceDescriptor.Provider<T>,RuntimeCapabilityProvider<T>,ServiceDescriptor.Provider<T,,SD> TernaryServiceDescriptor<T>,TernaryServiceDescriptor.Provider<T>,UnaryServiceDescriptor<T>,UnaryServiceDescriptor.Provider<T>
public interface ServiceDescriptor<T>
Describes a service by its name and provided value type.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceServiceDescriptor.Provider<T,SD extends ServiceDescriptor<T>> Provides a service descriptor. -
Method Summary
-
Method Details
-
getName
String getName()Returns the name of this described service.- Returns:
- the name of this described service.
-
getType
Returns the provided value type of this described service.- Returns:
- the provided value type of this described service.
-
asType
Returns a sub-class view of this service descriptor.- Type Parameters:
U- the subclass type- Parameters:
type- a sub-class of this descriptor's type- Returns:
- a sub-class view of this service descriptor.
-