public class AnnotationLocalServiceBinder extends Object implements LocalServiceBinder
LocalService metadata from annotations.| Constructor and Description |
|---|
AnnotationLocalServiceBinder() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isActionExcluded(Action action)
Override this method to exclude action/methods after they have been discovered.
|
LocalService |
read(Class<?> clazz) |
LocalService |
read(Class<?> clazz,
ServiceId id,
ServiceType type,
boolean supportsQueryStateVariables,
Class[] stringConvertibleTypes) |
LocalService |
read(Class<?> clazz,
ServiceId id,
ServiceType type,
boolean supportsQueryStateVariables,
Set<Class> stringConvertibleTypes) |
protected Map<Action,ActionExecutor> |
readActions(Class<?> clazz,
Map<StateVariable,StateVariableAccessor> stateVariables,
Set<Class> stringConvertibleTypes) |
protected Map<StateVariable,StateVariableAccessor> |
readStateVariables(Class<?> clazz,
Set<Class> stringConvertibleTypes) |
protected Set<Class> |
readStringConvertibleTypes(Class[] declaredTypes) |
public LocalService read(Class<?> clazz) throws LocalServiceBindingException
read in interface LocalServiceBinderclazz - The Java class that is the source of the service metadata.LocalServiceBindingException - If binding failed.public LocalService read(Class<?> clazz, ServiceId id, ServiceType type, boolean supportsQueryStateVariables, Class[] stringConvertibleTypes) throws LocalServiceBindingException
read in interface LocalServiceBinderclazz - The Java class that is the source of the service metadata.id - The pre-defined identifier of the service.type - The pre-defined type of the service.supportsQueryStateVariables - true if the service should support the
deprecated "query any state variable value" action.stringConvertibleTypes - A list of Java classes which map directly to string-typed
UPnP state variables.LocalServiceBindingException - If binding failed.public LocalService read(Class<?> clazz, ServiceId id, ServiceType type, boolean supportsQueryStateVariables, Set<Class> stringConvertibleTypes) throws LocalServiceBindingException
LocalServiceBindingExceptionprotected Set<Class> readStringConvertibleTypes(Class[] declaredTypes) throws LocalServiceBindingException
LocalServiceBindingExceptionprotected Map<StateVariable,StateVariableAccessor> readStateVariables(Class<?> clazz, Set<Class> stringConvertibleTypes) throws LocalServiceBindingException
LocalServiceBindingExceptionprotected Map<Action,ActionExecutor> readActions(Class<?> clazz, Map<StateVariable,StateVariableAccessor> stateVariables, Set<Class> stringConvertibleTypes) throws LocalServiceBindingException
LocalServiceBindingExceptionprotected boolean isActionExcluded(Action action)
Copyright © 2023 jUPnP.org. All rights reserved.