AbstractEJBMetaData(final Class<T> remoteInterfaceClass, final EJBHomeLocator<H> homeLocator) { Assert.checkNotNullParam("remoteInterfaceClass", remoteInterfaceClass); Assert.checkNotNullParam("homeLocator", homeLocator); this.remoteInterfaceClass = remoteInterfaceClass; this.homeLocator = homeLocator; }
/** * Check that the given offset and length fall completely within the bounds of the given array. * * @param array the array to check * @param offs the array offset * @param len the array length * @throws ArrayIndexOutOfBoundsException if the range of the offset and length do not fall within the array bounds */ public static void checkArrayBounds(final Object[] array, final int offs, final int len) throws ArrayIndexOutOfBoundsException { checkNotNullParamChecked("array", array); checkArrayBounds(array.length, offs, len); }
ContextPermission(final String name, final int actionBits) { super(name); Assert.checkNotNullParam("name", name); this.actionBits = actionBits & ACTION_ALL; }
/** * Construct a new instance. * * @param delegates the array of delegates (must not be {@code null}) */ public AggregateDiscoveryProvider(final DiscoveryProvider[] delegates) { Assert.checkNotNullParam("delegates", delegates); this.delegates = delegates; }
public ElytronAuthConfigProvider(final String messageLayer, final String applicationContext, final List<AuthenticationModuleDefinition> serverAuthModuleDefinitions) { this.messageLayer = messageLayer; this.applicationContext = applicationContext; this.serverAuthModuleDefinitions = checkNotNullParam("serverAuthModuleDefinitions", serverAuthModuleDefinitions); // Can however be empty. }
/** * Construct a new instance. * * @param credential the new credential */ public CredentialUpdateCallback(final Credential credential) { Assert.checkNotNullParam("credential", credential); this.credential = credential; }
public Builder<M, F, E> setFactory(final F factory) { Assert.checkNotNullParam("factory", factory); this.factory = factory; return this; }
/** * Set a principal transformer to apply before the realm is selected. * * @param preRealmRewriter a principal transformer to apply before the realm is selected * @return this builder */ public Builder setPreRealmRewriter(final Function<Principal, Principal> preRealmRewriter) { Assert.checkNotNullParam("preRealmRewriter", preRealmRewriter); this.preRealmRewriter = preRealmRewriter; return this; }
public DelegatingAuthConfigFactory(final ElytronAuthConfigFactory elytronAuthConfigFactory, final AuthConfigFactory backupAuthConfigFactory, final Supplier<Boolean> delegationAllowed) { this.elytronAuthConfigFactory = checkNotNullParam("elytronAuthConfigFactory", elytronAuthConfigFactory); this.backupAuthConfigFactory = checkNotNullParam("backupAuthConfigFactory", backupAuthConfigFactory); this.delegationAllowed = delegationAllowed; }
/** * Construct a new instance. * * @param instance the constant instance to always return from this selector */ public GlobalSelector(final T instance) { Assert.checkNotNullParam("instance", instance); this.instance = instance; }
/** * Set the current {@link SecurityDomain} in order to obtain identities from the cache * * @param securityDomain the current security domain */ public void setSecurityDomain(SecurityDomain securityDomain) { Assert.checkNotNullParam("securityDomain", securityDomain); this.securityDomain = securityDomain; }
public Builder setClusterNodeSelector(final ClusterNodeSelector clusterNodeSelector) { Assert.checkNotNullParam("clusterNodeSelector", clusterNodeSelector); this.clusterNodeSelector = clusterNodeSelector; return this; }
public RelativeContext(final FastHashtable<String, Object> environment, final AbstractContext rootContext, final SimpleName prefix) { super(environment); Assert.checkNotNullParam("rootContext", rootContext); Assert.checkNotNullParam("prefix", prefix); this.rootContext = rootContext; this.prefix = prefix; }
/** * Construct a new instance. * * @param name the principal name */ public NamePrincipal(final String name) { Assert.checkNotNullParam("name", name); this.name = name; }
/** * Set the host name that should be sent within the syslog messages. * * @param hostName the host name that should be sent within the syslog messages. * @return this builder. */ public Builder setHostName(String hostName) { this.hostName = checkNotNullParam("hostName", hostName); return this; }
/** * Construct a new instance. * * @param principal the peer principal */ public PeerPrincipalCallback(final Principal principal) { Assert.checkNotNullParam("principal", principal); this.principal = principal; }
/** * Construct a new instance. * * @param serviceType the service type (must not be {@code null}) * @param filterSpec the filter specification (must not be {@code null}) */ public ServiceDescription(final ServiceType serviceType, final FilterSpec filterSpec) { Assert.checkNotNullParam("serviceType", serviceType); Assert.checkNotNullParam("filterSpec", filterSpec); this.serviceType = serviceType; this.filterSpec = filterSpec; }
/** * Construct a new instance. * * @param delegates the array of delegates (must not be {@code null}) */ public AggregateRegistryProvider(final RegistryProvider[] delegates) { Assert.checkNotNullParam("delegates", delegates); this.delegates = delegates; }
/** * Construct a new instance. * * @param nodeName the associated node name (must not be {@code null}) */ public NodeAffinity(final String nodeName) { Assert.checkNotNullParam("nodeName", nodeName); this.nodeName = nodeName; }
/** * Construct a new instance. * * @param sslConnection the SSL connection (must not be {@code null}) */ public SSLCallback(final SSLConnection sslConnection) { checkNotNullParam("sslConnection", sslConnection); this.sslConnection = sslConnection; }