public static final WingsEndpoint getEndpoint ( Class < ? extends WingsEndpoint > endpointClazz ) throws IllegalStateException { if ( ! sIsInitialized ) { throw new IllegalStateException ( "Wings must be initialized. See Wings#init()." ) ; } WingsEndpoint selectedEndpoint = null ; for ( WingsEndpoint endpoint : sEndpoints ) { if ( endpointClazz . isInstance ( endpoint ) ) { selectedEndpoint = endpoint ; break ; } } return selectedEndpoint ; }
Gets the instance of a specific endpoint that Wings can share to .