Package org.jupnp.binding.annotations
Klasse AnnotationLocalServiceBinder
java.lang.Object
org.jupnp.binding.annotations.AnnotationLocalServiceBinder
- Alle implementierten Schnittstellen:
LocalServiceBinder
Reads
LocalService metadata from annotations.- Autor:
- Christian Bauer
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanisActionExcluded(Action action) Override this method to exclude action/methods after they have been discovered.read(Class<?> clazz, ServiceId id, ServiceType type, boolean supportsQueryStateVariables, Class[] stringConvertibleTypes) 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) readStringConvertibleTypes(Class[] declaredTypes)
-
Konstruktordetails
-
AnnotationLocalServiceBinder
public AnnotationLocalServiceBinder()
-
-
Methodendetails
-
read
- Angegeben von:
readin SchnittstelleLocalServiceBinder- Parameter:
clazz- The Java class that is the source of the service metadata.- Gibt zurück:
- The produced metadata.
- Löst aus:
LocalServiceBindingException- If binding failed.
-
read
public LocalService read(Class<?> clazz, ServiceId id, ServiceType type, boolean supportsQueryStateVariables, Class[] stringConvertibleTypes) throws LocalServiceBindingException - Angegeben von:
readin SchnittstelleLocalServiceBinder- Parameter:
clazz- 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-trueif 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.- Gibt zurück:
- The produced metadata.
- Löst aus:
LocalServiceBindingException- If binding failed.
-
read
public LocalService read(Class<?> clazz, ServiceId id, ServiceType type, boolean supportsQueryStateVariables, Set<Class> stringConvertibleTypes) throws LocalServiceBindingException - Löst aus:
LocalServiceBindingException
-
readStringConvertibleTypes
protected Set<Class> readStringConvertibleTypes(Class[] declaredTypes) throws LocalServiceBindingException - Löst aus:
LocalServiceBindingException
-
readStateVariables
protected Map<StateVariable,StateVariableAccessor> readStateVariables(Class<?> clazz, Set<Class> stringConvertibleTypes) throws LocalServiceBindingException - Löst aus:
LocalServiceBindingException
-
readActions
protected Map<Action,ActionExecutor> readActions(Class<?> clazz, Map<StateVariable, StateVariableAccessor> stateVariables, Set<Class> stringConvertibleTypes) throws LocalServiceBindingException- Löst aus:
LocalServiceBindingException
-
isActionExcluded
Override this method to exclude action/methods after they have been discovered.
-