List of usage examples for java.lang IllegalAccessException IllegalAccessException
public IllegalAccessException(String s)
IllegalAccessException
with a detail message. From source file:com.lixplor.fastutil.utils.control.KeyboardUtil.java
private KeyboardUtil() throws IllegalAccessException { throw new IllegalAccessException("Instantiation is not allowed! Use static methods only!"); }
From source file:com.mtramin.rxfingerprint.FingerprintObservable.java
@Override public void call(AsyncEmitter<T> asyncEmitter) { if (!RxFingerprint.isAvailable(context)) { asyncEmitter.onError(new IllegalAccessException( "Fingerprint authentication is not available on this device! Ensure that the device has a Fingerprint sensor and enrolled Fingerprints by calling RxFingerprint#available(Context) first")); }/*from w ww . j ava 2 s . c o m*/ AuthenticationCallback callback = createAuthenticationCallback(asyncEmitter); cancellationSignal = new CancellationSignal(); FingerprintManagerCompat.CryptoObject cryptoObject = initCryptoObject(asyncEmitter); FingerprintManagerCompat.from(context).authenticate(cryptoObject, 0, cancellationSignal, callback, null); asyncEmitter.setSubscription(Subscriptions.create(() -> { if (cancellationSignal != null && !cancellationSignal.isCanceled()) { cancellationSignal.cancel(); } })); }
From source file:com.alfresco.orm.repository.AlfrescoRespositoryProxyFactoryBean.java
public <T extends AlfrescoRespository> T getObject(Class clasz) throws InstantiationException, IllegalAccessException { AlfrescoRepositoryImpl alfrescoRespository = new AlfrescoRepositoryImpl(); Class declaredType = getTypeClass(clasz); if (null == declaredType) { throw new IllegalAccessException("Invalid configuration exception for class : " + clasz.getName()); }// w w w. j av a 2s . c o m alfrescoRespository.setDeclaredType(declaredType); alfrescoRespository.setSessionFactory(sessionFactory); ProxyFactory proxyFactory = new ProxyFactory(new Class[] { clasz }); proxyFactory.setTarget(alfrescoRespository); proxyFactory.addAdvice(new AlfrescoRepositoryMethodInterceptor()); return (T) proxyFactory.getProxy(); }
From source file:com.lixplor.fastutil.utils.control.GpsUtil.java
private GpsUtil() throws IllegalAccessException { throw new IllegalAccessException("Instantiation is not allowed! Use static methods only!"); }
From source file:tech.sirwellington.alchemy.generator.StringGenerators.java
StringGenerators() throws IllegalAccessException { throw new IllegalAccessException("cannot instantiate this class"); }
From source file:tech.sirwellington.alchemy.generator.NumberGenerators.java
NumberGenerators() throws IllegalAccessException { throw new IllegalAccessException("cannot instantiate this class"); }
From source file:com.mycompany.thymeleafspringapp.dao.DealsDaoImpl.java
@Override public Deals getDeal(long userId, long dealId) throws IllegalAccessException { Criteria crit = sessionFactory.openSession().createCriteria(Deals.class); crit.add(Restrictions.and(Restrictions.eq("dealId", dealId), Restrictions.eq("users", usersDAO.getUserById(userId)))); crit.setMaxResults(1);/*from ww w.ja v a 2s .co m*/ List<Deals> deals = crit.list(); if (deals.isEmpty()) { throw new IllegalAccessException("Unable to find the deal with given deal_id"); } Deals d = deals.get(0); return d; }
From source file:tk.playerforcehd.networklib.bukkit.socket.client.NS_ClientSocketManager.java
public NS_ClientSocketManager(Main main) throws IllegalAccessException { if (clientSocketManager != null) { throw new IllegalAccessException( "Library users are not allowed to create a new instance of the ServerSocketManager!"); }//from w w w .j a va 2s . c o m clientSocketManager = this; this.main = main; this.NSNetClientSockets = new ArrayList<>(); }
From source file:tk.playerforcehd.networklib.bungee.socket.client.NS_ClientSocketManager.java
public NS_ClientSocketManager(Main main) throws IllegalAccessException { if (clientSocketManager != null) { throw new IllegalAccessException( "Library users are not allowed to create a new instance of the NS_ServerSocketManager!"); }//w w w .j av a 2 s.c o m clientSocketManager = this; this.main = main; this.NSNetClientSockets = new ArrayList<>(); }
From source file:tk.playerforcehd.networklib.bungee.socket.server.NS_ServerSocketManager.java
public NS_ServerSocketManager(Main main) throws IllegalAccessException { if (serverSocketManager != null) { throw new IllegalAccessException( "Library users are not allowed to create a new instance of the NS_ServerSocketManager!"); }/*from ww w . j ava 2 s .co m*/ serverSocketManager = this; this.main = main; this.NSNetServerSockets = new ArrayList<>(); }