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>,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 Classes Modifier and Type Interface Description static interfaceServiceDescriptor.Provider<T,SD extends ServiceDescriptor<T>>Provides a service descriptor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <U extends T>
ServiceDescriptor<U>asType(Class<U> type)Returns a sub-class view of this service descriptor.StringgetName()Returns the name of this described service.Class<T>getType()Returns the provided value type of this described service.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of this described service.- Returns:
- the name of this described service.
-
getType
Class<T> getType()
Returns the provided value type of this described service.- Returns:
- the provided value type of this described service.
-
asType
<U extends T> ServiceDescriptor<U> asType(Class<U> type)
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.
-
-