@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface Register
If a non empty name is given, the part is registered with the given name and for the given classes. Otherwise, the part is directly registered without any unique name.
If no classes are given, the class is registered for its own class, and all implemented interfaces. This is probably the right choice in many situations, therefore this annotation can be used without any parameters in most cases.
Classes wearing this annotations must have a zero args constructor.
public abstract String name
public abstract String framework
Sirius.isFrameworkEnabled(String)
returns true for the given framework.public abstract Class<?>[] classes
Copyright © 2018. All rights reserved.