Refine search
@ConstructorProperties( { "resourceType", "resourceId", "description" } ) public LockInfo( String type, String resourceId, String description ) { this.type = type; this.resource = resourceId; this.description = description; }
@Nullable public static String[] evaluate(Constructor<?> candidate, int paramCount) { ConstructorProperties cp = candidate.getAnnotation(ConstructorProperties.class); if (cp != null) { String[] names = cp.value(); if (names.length != paramCount) { throw new IllegalStateException("Constructor annotated with @ConstructorProperties but not " + "corresponding to actual number of parameters (" + paramCount + "): " + candidate); } return names; } else { return null; } } }
@ConstructorProperties({ "id", "passwords" }) protected OperatingSystem(int id, @Nullable Set<Password> passwords) { this.id = id; this.passwords = passwords == null ? ImmutableSet.<Password>of() : ImmutableSet.copyOf(passwords); }
@ConstructorProperties({ "public", "private" }) protected Addresses(@Nullable Set<String> publicAddresses, @Nullable Set<String> privateAddresses) { this.publicAddresses = publicAddresses == null ? null : ImmutableSet.copyOf(publicAddresses); this.privateAddresses = privateAddresses == null ? null : ImmutableSet.copyOf(privateAddresses); }
@ConstructorProperties({ "id", "name", "emailAddress", "comment", "created", "updated" }) private Subdomain(int id, String name, String email, @Nullable String comment, Date created, Date updated) { this.id = id; this.name = name; this.emailAddress = email; this.comment = Optional.fromNullable(comment); this.created = created; this.updated = updated; }
@ConstructorProperties({ "id", "expires", "tenant" }) protected Token(String id, Date expires, @Nullable Optional<Tenant> tenant) { this.id = checkNotNull(id, "id"); this.expires = checkNotNull(expires, "expires"); this.tenant = tenant == null ? Optional.<Tenant> absent() : tenant; }
@ConstructorProperties({"fingerprint", "items"}) public Tags(String fingerprint, @Nullable Set<String> items) { this.fingerprint = checkNotNull(fingerprint); this.items = items == null ? ImmutableSet.<String>of() : items; }
@ConstructorProperties({ "id", "account", "domainid", "ispublic" }) protected ISOPermissions(String id, @Nullable Set<String> accounts, @Nullable String domainId, boolean isPublic) { this.id = checkNotNull(id, "id"); this.accounts = accounts == null ? ImmutableSet.<String>of() : ImmutableSet.copyOf(accounts); this.domainId = domainId; this.isPublic = isPublic; }
@ConstructorProperties({ "id", "name", "links", "status", "updated", "media-types" }) protected ApiMetadata(String id, @Nullable String name, java.util.Set<Link> links, @Nullable String status, @Nullable Date updated, Set<MediaType> mediaTypes) { super(id, name, links); this.status = status; this.updated = updated; this.mediaTypes = ImmutableSet.copyOf(checkNotNull(mediaTypes, "mediaTypes")); }
@ConstructorProperties({ "id", "name", "emailAddress", "comment", "created", "updated" }) private Subdomain(int id, String name, String email, @Nullable String comment, Date created, Date updated) { this.id = id; this.name = name; this.emailAddress = email; this.comment = Optional.fromNullable(comment); this.created = created; this.updated = updated; }
@ConstructorProperties({ "id", "expires", "tenant" }) protected Token(String id, Date expires, @Nullable Optional<Tenant> tenant) { this.id = checkNotNull(id, "id"); this.expires = checkNotNull(expires, "expires"); this.tenant = tenant == null ? Optional.<Tenant> absent() : tenant; }
@ConstructorProperties({ "name", "capability" }) protected NetworkService(String name, @Nullable Set<Capability> capabilities) { this.name = checkNotNull(name, "name"); this.capabilities = capabilities == null ? ImmutableSet.<Capability>of() : ImmutableSortedSet.copyOf(capabilities); }
@ConstructorProperties({ "token", "user", "serviceCatalog" }) protected Access(Token token, User user, @Nullable Set<Service> serviceCatalog) { this.token = checkNotNull(token, "token"); this.user = checkNotNull(user, "user"); this.serviceCatalog = serviceCatalog == null ? ImmutableSet.<Service> of() : ImmutableSet.copyOf(serviceCatalog); }
@ConstructorProperties({ "id", "name", "links" }) protected Resource(String id, @Nullable String name, @Nullable Set<Link> links) { this.id = checkNotNull(id, "id"); this.name = name; this.links = links == null ? null : ImmutableSet.copyOf(links); }
@ConstructorProperties({ "id", "name", "links", "adminPass" }) protected ServerCreated(String id, @Nullable String name, Set<Link> links, @Nullable String adminPass) { super(id, name, links); this.adminPass = Optional.fromNullable(adminPass); }
@ConstructorProperties({ "id", "expires", "tenant" }) protected Token(String id, Date expires, @Nullable Optional<Tenant> tenant) { this.id = checkNotNull(id, "id"); this.expires = checkNotNull(expires, "expires"); this.tenant = tenant == null ? Optional.<Tenant> absent() : tenant; }
/** * Initializes core context bean factory using red5.core bean factory from red5.xml context */ @ConstructorProperties(value = { "" }) public Context() { }
@Nullable public static String[] evaluate(Constructor<?> candidate, int paramCount) { ConstructorProperties cp = candidate.getAnnotation(ConstructorProperties.class); if (cp != null) { String[] names = cp.value(); if (names.length != paramCount) { throw new IllegalStateException("Constructor annotated with @ConstructorProperties but not " + "corresponding to actual number of parameters (" + paramCount + "): " + candidate); } return names; } else { return null; } } }
@ConstructorProperties({ "id", "name", "roles" }) protected User(String id, String name, @Nullable Set<Role> roles) { this.id = checkNotNull(id, "id"); this.name = checkNotNull(name, "name"); this.roles = roles == null ? ImmutableSet.<Role>of() : ImmutableSet.copyOf(roles); }
@ConstructorProperties({ "public", "private" }) protected Addresses(@Nullable Set<String> publicAddresses, @Nullable Set<String> privateAddresses) { this.publicAddresses = publicAddresses == null ? null : ImmutableSet.copyOf(publicAddresses); this.privateAddresses = privateAddresses == null ? null : ImmutableSet.copyOf(privateAddresses); }