signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class AutoScalingSettingsUpdateMarshaller { /** * Marshall the given parameter object . */ public void marshall ( AutoScalingSettingsUpdate autoScalingSettingsUpdate , ProtocolMarshaller protocolMarshaller ) { } }
if ( autoScalingSettingsUpdate == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( autoScalingSettingsUpdate . getMinimumUnits ( ) , MINIMUMUNITS_BINDING ) ; protocolMarshaller . marshall ( autoScalingSettingsUpdate . getMaximumUnits ( ) , MA...
public class MessageProcessor { /** * ( non - Javadoc ) * @ see com . ibm . ws . sib . admin . JsEngineComponent # busReloaded ( ConfigObject , * boolean , boolean , boolean ) */ public void busReloaded ( JsMEConfig newBus , boolean busChanged , boolean destChg , boolean medChg ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "busReloaded" ) ;
public class N { /** * { @ link Arrays # binarySearch ( char [ ] , int , int , char ) } * @ param a * @ param fromIndex * @ param toIndex * @ param key * @ return */ public static int binarySearch ( final char [ ] a , final int fromIndex , final int toIndex , final char key ) { } }
return Array . binarySearch ( a , fromIndex , toIndex , key ) ;
public class GeodesicPosition { /** * Replies the preferred format of the string representation * of a geodesic position . * @ param allowNullValue indicates if the < code > null < / code > value is enable * for output in the replied value . * @ return the preferred string representation , or < code > null < / ...
final Preferences prefs = Preferences . userNodeForPackage ( GeodesicPosition . class ) ; if ( prefs != null ) { final String v = prefs . get ( "STRING_REPRESENTATION" , null ) ; // $ NON - NLS - 1 $ if ( v != null && ! "" . equals ( v ) ) { // $ NON - NLS - 1 $ try { GeodesicPositionStringRepresentation rep ; try { re...
public class ConfBase { /** * Private methods */ private void getPfile ( ) throws ConfigException { } }
if ( pfile != null ) { return ; } String pfileUri = System . getProperty ( pfilePname ) ; if ( pfileUri == null ) { throw new ConfigException ( "No property with name \"" + pfilePname + "\"" ) ; } try { /* URI uri ; uri = new URI ( pfileUri ) ; String scheme = uri . getScheme ( ) ; if ( ( scheme = = null ) | | ( ...
public class SarlBehaviorUnitImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public NotificationChain basicSetGuard ( XExpression newGuard , NotificationChain msgs ) { } }
XExpression oldGuard = guard ; guard = newGuard ; if ( eNotificationRequired ( ) ) { ENotificationImpl notification = new ENotificationImpl ( this , Notification . SET , SarlPackage . SARL_BEHAVIOR_UNIT__GUARD , oldGuard , newGuard ) ; if ( msgs == null ) msgs = notification ; else msgs . add ( notification ) ; } retur...
public class IntIntMap { /** * Reconstitute the < tt > IntIntMap < / tt > instance from a stream ( i . e . , * deserialize it ) . */ private void readObject ( ObjectInputStream s ) throws IOException , ClassNotFoundException { } }
// read in number of buckets and allocate the bucket array _buckets = new Record [ s . readInt ( ) ] ; _loadFactor = s . readFloat ( ) ; // read in size ( number of mappings ) int size = s . readInt ( ) ; // read the keys and values for ( int i = 0 ; i < size ; i ++ ) { put ( s . readInt ( ) , s . readInt ( ) ) ; }
public class GetBootstrapBrokersRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetBootstrapBrokersRequest getBootstrapBrokersRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getBootstrapBrokersRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getBootstrapBrokersRequest . getClusterArn ( ) , CLUSTERARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request t...
public class FbBot { /** * Show the github project url when the user says bye . * @ param event */ @ Controller ( events = EventType . MESSAGE , pattern = "(?i)(bye|tata|ttyl|cya|see you)" ) public void showGithubLink ( Event event ) { } }
reply ( event , new Message ( ) . setAttachment ( new Attachment ( ) . setType ( "template" ) . setPayload ( new Payload ( ) . setTemplateType ( "button" ) . setText ( "Bye. Happy coding!" ) . setButtons ( new Button [ ] { new Button ( ) . setType ( "web_url" ) . setTitle ( "View code" ) . setUrl ( "https://github.com/...
public class InternalSARLParser { /** * InternalSARL . g : 14675:1 : ruleXDoWhileExpression returns [ EObject current = null ] : ( ( ) otherlv _ 1 = ' do ' ( ( lv _ body _ 2_0 = ruleXExpression ) ) otherlv _ 3 = ' while ' otherlv _ 4 = ' ( ' ( ( lv _ predicate _ 5_0 = ruleXExpression ) ) otherlv _ 6 = ' ) ' ) ; */ publ...
EObject current = null ; Token otherlv_1 = null ; Token otherlv_3 = null ; Token otherlv_4 = null ; Token otherlv_6 = null ; EObject lv_body_2_0 = null ; EObject lv_predicate_5_0 = null ; enterRule ( ) ; try { // InternalSARL . g : 14681:2 : ( ( ( ) otherlv _ 1 = ' do ' ( ( lv _ body _ 2_0 = ruleXExpression ) ) otherlv...
public class ErrorReportLoggingHandler { /** * will flush the exception to metrics manager during getValueAndReset call . */ @ Override public void publish ( LogRecord record ) { } }
// Convert Log Throwable throwable = record . getThrown ( ) ; if ( throwable != null ) { synchronized ( ExceptionRepositoryAsMetrics . INSTANCE ) { // We would not include the message if already exceeded the exceptions limit if ( ExceptionRepositoryAsMetrics . INSTANCE . getExceptionsCount ( ) >= exceptionsLimit ) { dr...
public class CreateWSDL { /** * GetControlProperty Method . */ public String getControlProperty ( String strKey , String strDefaultValue ) { } }
String strValue = ( ( PropertiesField ) this . getRecord ( MessageControl . MESSAGE_CONTROL_FILE ) . getField ( MessageControl . PROPERTIES ) ) . getProperty ( strKey ) ; if ( strValue == null ) { if ( strDefaultValue == null ) strDefaultValue = this . getDefaultValue ( strKey ) ; strValue = strDefaultValue ; } return ...
public class Thin { /** * Returns true if the kernel has no 0s . * @ param kernel the array storing the kernel values . * @ return True if no 0s ( false otherwise ) */ private boolean kernelNo0s ( int [ ] kernel ) { } }
for ( int i = 0 ; i < kernel . length ; ++ i ) { if ( kernel [ i ] == 0 ) return false ; } return true ;
public class LinearLayout { /** * < < < < < measureUntilFull helper methods */ @ Override protected boolean changeDirection ( int currentIndex , int centerIndex , boolean inBounds ) { } }
boolean changed = false ; if ( getGravityInternal ( ) == Gravity . CENTER && currentIndex <= centerIndex && currentIndex == 0 || ! inBounds ) { changed = true ; } return changed ;
public class AbstractDrawerItem { /** * is called after bindView to allow some post creation setps * @ param drawerItem the drawerItem which is bound to the view * @ param view the currently view which will be bound */ public void onPostBindView ( IDrawerItem drawerItem , View view ) { } }
if ( mOnPostBindViewListener != null ) { mOnPostBindViewListener . onBindView ( drawerItem , view ) ; }
public class FeaturesInner { /** * Gets all the preview features that are available through AFEC for the subscription . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the PagedList & lt ; FeatureResultInner & gt ; object */ public Observable < Page < Featur...
return listWithServiceResponseAsync ( ) . map ( new Func1 < ServiceResponse < Page < FeatureResultInner > > , Page < FeatureResultInner > > ( ) { @ Override public Page < FeatureResultInner > call ( ServiceResponse < Page < FeatureResultInner > > response ) { return response . body ( ) ; } } ) ;
public class Widget { /** * Set [ X , Y , Z ] current scale * @ param x * Scaling factor on the ' X ' axis . * @ param y * Scaling factor on the ' Y ' axis . * @ param z * Scaling factor on the ' Z ' axis . */ public void setScale ( float x , float y , float z ) { } }
getTransform ( ) . setScale ( x , y , z ) ; if ( mTransformCache . setScale ( x , y , z ) ) { onTransformChanged ( ) ; }
public class ServerConformanceProvider { /** * Actually create and return the conformance statement * See the class documentation for an important note if you are extending this class */ @ Override @ Metadata public Conformance getServerConformance ( HttpServletRequest theRequest ) { } }
if ( myConformance != null && myCache ) { return myConformance ; } Conformance retVal = new Conformance ( ) ; retVal . setPublisher ( myPublisher ) ; retVal . setDate ( conformanceDate ( ) ) ; retVal . setFhirVersion ( FhirVersionEnum . DSTU1 . getFhirVersionString ( ) ) ; retVal . setAcceptUnknown ( false ) ; // TODO ...
public class Value { /** * Change the object ' s value . Normally , values are immutable , but subclasses of { @ link UpdatableValue } implement * this set method to replace the object referenced with another . ReferenceValues like UpdatableValue delegate all * the other Value method to the contained object . * @...
abort ( 4088 , "Set not permitted for " + kind ( ) , ctxt ) ;
public class ListManagementTermListsImpl { /** * Refreshes the index of the list with list Id equal to list ID passed . * @ param listId List Id of the image list . * @ param language Language of the terms . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable t...
return refreshIndexMethodWithServiceResponseAsync ( listId , language ) . map ( new Func1 < ServiceResponse < RefreshIndex > , RefreshIndex > ( ) { @ Override public RefreshIndex call ( ServiceResponse < RefreshIndex > response ) { return response . body ( ) ; } } ) ;
public class BehaviorHistoryInfo { /** * 对应updateCount的数据统计平均值 */ public Long getUpdateCountAvg ( ) { } }
Long updateCountAvg = 0L ; if ( items . size ( ) != 0 ) { for ( TableStat item : items ) { if ( item . getEndTime ( ) . equals ( item . getStartTime ( ) ) ) { updateCountAvg += item . getUpdateCount ( ) ; } else { updateCountAvg += item . getUpdateCount ( ) * 1000 / ( item . getEndTime ( ) . getTime ( ) - item . getSta...
public class DefaultErrorHandler { /** * Initialize the instance . */ public void init ( ) { } }
if ( initialized ) { return ; } Widget parent = inputWidget . getParent ( ) ; while ( parent != null && ! parent . getClass ( ) . getName ( ) . equals ( "com.google.gwt.user.client.ui.Widget" ) ) { helpBlock = findHelpBlock ( inputWidget ) ; if ( helpBlock != null ) { break ; } else { parent = parent . getParent ( ) ; ...
public class SyncMembersInner { /** * Creates or updates a sync member . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param databaseName The na...
return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , syncGroupName , syncMemberName , parameters ) . map ( new Func1 < ServiceResponse < SyncMemberInner > , SyncMemberInner > ( ) { @ Override public SyncMemberInner call ( ServiceResponse < SyncMemberInner > response ) { r...
public class VirtualNetworkGatewayConnectionsInner { /** * The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider . * @ param resourceGroupName ...
return beginResetSharedKeyWithServiceResponseAsync ( resourceGroupName , virtualNetworkGatewayConnectionName , keyLength ) . map ( new Func1 < ServiceResponse < ConnectionResetSharedKeyInner > , ConnectionResetSharedKeyInner > ( ) { @ Override public ConnectionResetSharedKeyInner call ( ServiceResponse < ConnectionRese...
public class HBCIDialogStatus { /** * Gibt für einen Dialog alle Fehlermeldungen zurück . Für jede Nachricht * des kompletten HBCI - Dialoges ( Dialog - Initialisierung , Nutzdaten , * Dialog - Abschluss ) werden die jeweils aufgetretenen Fehlermeldungen * gesammelt und zu dem Rückgabewert dieser Methode hinz...
StringBuffer ret = new StringBuffer ( ) ; if ( initStatus != null ) { String s = initStatus . getErrorString ( ) ; if ( s . length ( ) != 0 ) { // ret . append ( HBCIUtils . getLocMsg ( " STAT _ INIT " ) ) . append ( " : " ) ; // ret . append ( System . getProperty ( " line . separator " ) ) ; ret . append ( s ) ; ret ...
public class CronTrigger { /** * NOT YET IMPLEMENTED : Returns the time before the given time that this * < code > CronTrigger < / code > will fire . */ protected Date getTimeBefore ( final Date eTime ) { } }
return ( m_aCronEx == null ) ? null : m_aCronEx . getTimeBefore ( eTime ) ;
public class PathUtil { /** * A resource selector which always matches * @ param < T > content type * @ return selector */ public static < T extends ContentMeta > ResourceSelector < T > allResourceSelector ( ) { } }
return new ResourceSelector < T > ( ) { @ Override public boolean matchesContent ( T content ) { return true ; } } ;
public class Callback { /** * Tries making the callback , first via messenger , then via intent * @ param context * @ param dataName * @ param data * @ return false if it callback cannot be made */ public boolean call ( Context context , String dataName , Bundle data ) { } }
boolean useLocalBroadcast = BeaconManager . getInstanceForApplication ( context ) . isMainProcess ( ) ; boolean success = false ; if ( useLocalBroadcast ) { String action = null ; if ( dataName == "rangingData" ) { action = BeaconLocalBroadcastProcessor . RANGE_NOTIFICATION ; } else { action = BeaconLocalBroadcastProce...
public class Ifc4FactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public IfcStructuralSurfaceActivityTypeEnum createIfcStructuralSurfaceActivityTypeEnumFromString ( EDataType eDataType , String initialValue ) { } }
IfcStructuralSurfaceActivityTypeEnum result = IfcStructuralSurfaceActivityTypeEnum . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class ParallelIterate { /** * Iterate over the collection specified in parallel batches using the default values for the task size . The * ProcedureFactory can create stateful closures that will be collected and combined using the specified Combiner . * < pre > e . g . The < b > ParallelIterate . select ( ) ...
ParallelIterate . forEach ( iterable , procedureFactory , combiner , minForkSize , taskCount , ParallelIterate . EXECUTOR_SERVICE ) ;
public class ConsonantUtil { /** * * * * * * BEGINNING OF FUNCTION * * * * * */ / * / public static boolean is_chavarganta ( String str ) { } }
String s1 = VarnaUtil . getAntyaVarna ( str ) ; if ( is_chavarga ( s1 ) ) return true ; return false ;
public class IndexableTaskItem { /** * Add an appliable " post - run " dependent for this task item . * @ param appliable the appliable " post - run " dependent . * @ return the key to be used as parameter to taskResult ( string ) method to retrieve updated " post - run " dependent */ @ SuppressWarnings ( "unchecke...
TaskGroup . HasTaskGroup dependency = ( TaskGroup . HasTaskGroup ) appliable ; return this . addPostRunDependent ( dependency ) ;
public class ParameterUtil { /** * Get ordered parameters map ( dependent parameters are after their dependents ) where the key is the parameter name and * the value is the parameter * The result will contain also the hidden parameters and all parameters used just inside other parameters . * @ param query query o...
Set < String > paramNames = new LinkedHashSet < String > ( Arrays . asList ( query . getParameterNames ( ) ) ) ; for ( QueryParameter p : allParameters . values ( ) ) { if ( p . getDependentParameterNames ( ) . size ( ) > 0 ) { paramNames . remove ( p . getName ( ) ) ; } paramNames . addAll ( p . getDependentParameterN...
public class WikimediaLanguageCodes { /** * Get a < a href = " http : / / www . rfc - editor . org / rfc / bcp / bcp47 . txt " > BCP 47 < / a > * language code for the given Wikimedia language code . * @ param wikimediaLanguageCode * the language code as used by Wikimedia * @ return the BCP 47 language code *...
if ( LANGUAGE_CODES . containsKey ( wikimediaLanguageCode ) ) { return LANGUAGE_CODES . get ( wikimediaLanguageCode ) ; } else { throw new IllegalArgumentException ( "Unknown Wikimedia language \"" + wikimediaLanguageCode + "\"." ) ; }
public class ExecutionEnvironment { /** * Creates a DataSet that represents the Strings produced by reading the given file line wise . * The file will be read with the system ' s default character set . * @ param filePath The path of the file , as a URI ( e . g . , " file : / / / some / local / file " or " hdfs : /...
Validate . notNull ( filePath , "The file path may not be null." ) ; return new DataSource < String > ( this , new TextInputFormat ( new Path ( filePath ) ) , BasicTypeInfo . STRING_TYPE_INFO ) ;
public class ReflectionUtils { /** * Returns the field object found for the given field name in the given * class . This method traverses through the super classes of the given class * and tries to find the field as declared field within these classes . When * the object class is reached the traversing stops . If...
final String internedName = fieldName . intern ( ) ; return traverseHierarchy ( clazz , new TraverseTask < Field > ( ) { @ Override public Field run ( Class < ? > clazz ) { Field [ ] fields = clazz . getDeclaredFields ( ) ; for ( int i = 0 ; i < fields . length ; i ++ ) { if ( fields [ i ] . getName ( ) == internedName...
public class SQLRunner { /** * Adds the where . * @ throws CacheReloadException on error */ private void addWhere4QueryPrint ( final QueryPrint _print ) throws CacheReloadException { } }
final Filter filter = _print . getFilter ( ) ; filter . append2SQLSelect ( sqlSelect ) ;
public class OrcFile { /** * Populates the { @ link Corc } with the next value from the { @ link RecordReader } . Then copies the values into the * incoming { @ link TupleEntry } . */ @ Override public boolean source ( FlowProcess < ? extends Configuration > flowProcess , SourceCall < Corc , RecordReader > sourceCall...
Corc corc = sourceCall . getContext ( ) ; @ SuppressWarnings ( "unchecked" ) boolean next = sourceCall . getInput ( ) . next ( NullWritable . get ( ) , corc ) ; if ( ! next ) { return false ; } TupleEntry tupleEntry = sourceCall . getIncomingEntry ( ) ; for ( Comparable < ? > fieldName : tupleEntry . getFields ( ) ) { ...
public class Utils { /** * Returns the default URL for a given domain object . * @ param obj the domain object * @ param includeName true if we want to include the name of the object in the URL * @ param includeId true if we want to include the ID of the object in the URL * @ return the object ' s URL - e . g ....
if ( obj == null ) { return "/" ; } if ( includeId && obj . getId ( ) != null ) { return ( includeName && ! StringUtils . isBlank ( obj . getName ( ) ) ) ? obj . getObjectURI ( ) . concat ( "-" ) . concat ( urlEncode ( noSpaces ( obj . getName ( ) , "-" ) ) ) : obj . getObjectURI ( ) ; } else { return obj . getObjectUR...
public class A_CmsSelectResourceTypeDialog { /** * Creates type helper which is responsible for generating the type list . < p > * @ return the type helper */ protected CmsAddDialogTypeHelper createTypeHelper ( ) { } }
return new CmsAddDialogTypeHelper ( CmsResourceTypeConfig . AddMenuType . workplace ) { @ Override protected boolean exclude ( CmsResourceTypeBean type ) { String typeName = type . getType ( ) ; CmsExplorerTypeSettings explorerType = OpenCms . getWorkplaceManager ( ) . getExplorerTypeSetting ( typeName ) ; boolean noCr...
public class UpdateItemRequest { /** * This is a legacy parameter . Use < code > UpdateExpression < / code > instead . For more information , see < a href = * " https : / / docs . aws . amazon . com / amazondynamodb / latest / developerguide / LegacyConditionalParameters . AttributeUpdates . html " * > AttributeUpd...
setAttributeUpdates ( attributeUpdates ) ; return this ;
public class DeleteApnsSandboxChannelRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeleteApnsSandboxChannelRequest deleteApnsSandboxChannelRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( deleteApnsSandboxChannelRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteApnsSandboxChannelRequest . getApplicationId ( ) , APPLICATIONID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to ma...
public class StatefulPassivator { /** * d430549.10 */ private Object activateObjectFromInfo ( EJBObjectInfo ejbObjectInfo , Class < ? > objClass , Map < String , Map < String , Field > > passivatorFields ) throws RemoteException { } }
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "activateObjectFromInfo" , new Object [ ] { ejbObjectInfo , objClass } ) ; // d460047 , d648122 - re - work section Object obj = null ; try { if ( ! objClass . getName ( ) . equals ( ejbObj...
public class InternalSARLParser { /** * InternalSARL . g : 12810:1 : ruleXOtherOperatorExpression returns [ EObject current = null ] : ( this _ XAdditiveExpression _ 0 = ruleXAdditiveExpression ( ( ( ( ( ) ( ( ruleOpOther ) ) ) ) = > ( ( ) ( ( ruleOpOther ) ) ) ) ( ( lv _ rightOperand _ 3_0 = ruleXAdditiveExpression ) ...
EObject current = null ; EObject this_XAdditiveExpression_0 = null ; EObject lv_rightOperand_3_0 = null ; enterRule ( ) ; try { // InternalSARL . g : 12816:2 : ( ( this _ XAdditiveExpression _ 0 = ruleXAdditiveExpression ( ( ( ( ( ) ( ( ruleOpOther ) ) ) ) = > ( ( ) ( ( ruleOpOther ) ) ) ) ( ( lv _ rightOperand _ 3_0 =...
public class AlignmentIteratorForward { /** * Advance to the next alignment position * @ return { @ literal true } if iteration successful ; { @ literal false } if iteration ended */ @ Override public boolean advance ( ) { } }
if ( currentMutation != NON_MUTATION_1 ) { // Prevents invocation on the first execution of the method // This will be executed starting from the second call of the advance ( ) method if ( currentMutation != NON_MUTATION ) { switch ( Mutation . getRawTypeCode ( currentMutation ) ) { case RAW_MUTATION_TYPE_SUBSTITUTION ...
public class CommerceTaxFixedRateUtil { /** * Returns the last commerce tax fixed rate in the ordered set where CPTaxCategoryId = & # 63 ; . * @ param CPTaxCategoryId the cp tax category ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the last m...
return getPersistence ( ) . fetchByCPTaxCategoryId_Last ( CPTaxCategoryId , orderByComparator ) ;
public class XmlUtils { /** * Validate XML matches XSD . Stream - based method . * @ param xsdStream resource based path to XSD file * @ param xmlStream resource based path to XML file * @ throws IOException io exception for loading files * @ throws SAXException sax exception for parsing files */ public static ...
SchemaFactory factory = SchemaFactory . newInstance ( XMLConstants . W3C_XML_SCHEMA_NS_URI ) ; Schema schema = factory . newSchema ( new StreamSource ( xsdStream ) ) ; Validator validator = schema . newValidator ( ) ; validator . validate ( new StreamSource ( xmlStream ) ) ;
public class FormItem { /** * Converts entire content of this item to String . * @ return content streamed from this field as string . */ public String getStreamAsString ( ) { } }
try { return Util . read ( fileItemStream . openStream ( ) ) ; } catch ( Exception e ) { throw new ControllerException ( e ) ; }
public class ForMethod { /** * Creates a transformer that enforces the supplied modifier contributors . All ranges of each contributor is first cleared and then overridden * by the specified modifiers in the order they are supplied . * @ param modifierContributor The modifier transformers in their application order...
return withModifiers ( Arrays . asList ( modifierContributor ) ) ;
public class ElementMatchers { /** * Creates a matcher that matches none of the given annotations as { @ link AnnotationDescription } s * by the { @ link java . lang . Object # equals ( Object ) } method . None of the values must be { @ code null } . * @ param value The input values to be compared against . * @ p...
return noneOf ( new AnnotationList . ForLoadedAnnotations ( value ) ) ;
public class ServiceLocator { /** * This method obtains the datasource itself for a caller * @ return the DataSource corresponding to the name parameter */ public DataSource getDataSource ( String dataSourceName ) throws ServiceLocatorException { } }
DataSource dataSource = null ; try { if ( cache . containsKey ( dataSourceName ) ) { dataSource = ( DataSource ) cache . get ( dataSourceName ) ; } else { dataSource = ( DataSource ) ic . lookup ( dataSourceName ) ; cache . put ( dataSourceName , dataSource ) ; } } catch ( NamingException ne ) { throw new ServiceLocato...
public class Utils { /** * To check whether current network is wifi . * @ param context context * @ return true if network if wifi , otherwise return false */ static boolean isWifi ( Context context ) { } }
if ( context == null ) { return false ; } ConnectivityManager manager = ( ConnectivityManager ) context . getSystemService ( Context . CONNECTIVITY_SERVICE ) ; if ( manager == null ) { return false ; } NetworkInfo info = manager . getActiveNetworkInfo ( ) ; return info != null && ( info . getType ( ) == ConnectivityMan...
public class CmsWorkplaceManager { /** * Returns the object used for translating group names . < p > * @ return the group name translator */ public I_CmsGroupNameTranslation getGroupNameTranslation ( ) { } }
if ( m_groupNameTranslation != null ) { return m_groupNameTranslation ; } if ( m_groupTranslationClass != null ) { try { m_groupNameTranslation = ( I_CmsGroupNameTranslation ) Class . forName ( m_groupTranslationClass ) . newInstance ( ) ; return m_groupNameTranslation ; } catch ( ClassNotFoundException e ) { LOG . err...
public class DFSInputStream { /** * Open a DataInputStream to a DataNode so that it can be read from . * We get block ID and the IDs of the destinations at startup , from the namenode . */ private synchronized DatanodeInfo blockSeekTo ( long target , boolean throwWhenNotFound ) throws IOException { } }
// We only allow to seek before the end of the file , or the end of the file // and allowSeedtoEnd , which is the case called by available ( ) . if ( target > getFileLength ( ) || ( target == getFileLength ( ) && throwWhenNotFound ) ) { throw new IOException ( "Attempted to read past end of file" ) ; } // Will be getti...
public class DefaultVortexMaster { /** * Add aggregate - able Tasklets to pendingTasklets . */ @ Override public < TInput , TOutput > VortexAggregateFuture < TInput , TOutput > enqueueTasklets ( final VortexAggregateFunction < TOutput > aggregateFunction , final VortexFunction < TInput , TOutput > vortexFunction , fina...
final int aggregateFunctionId = aggregateIdCounter . getAndIncrement ( ) ; aggregateFunctionRepository . put ( aggregateFunctionId , aggregateFunction , policy ) ; final List < Tasklet > tasklets = new ArrayList < > ( inputs . size ( ) ) ; final Map < Integer , TInput > taskletIdInputMap = new HashMap < > ( inputs . si...
public class HortonMachine { /** * Retrieves the { @ link HortonMachine } for a particular url path . * < b > When this method is called , the { @ link HortonMachine } instance is reset . < / b > * Be careful when you use this . This is a workaround needed for eclipse * systems , where the url returned by the url...
hortonMachine = new HortonMachine ( baseclassUrl ) ; hortonMachine . gatherInformations ( ) ; return hortonMachine ;
public class YOWElement { /** * Jahres auf einer day - of - year - Skala ( kann auch < = 0 sein ) . */ private static int getFirstCalendarWeekAsDayOfYear ( int year ) { } }
Weekday wdNewYear = Weekday . valueOf ( GregorianMath . getDayOfWeek ( year , 1 , 1 ) ) ; int dow = wdNewYear . getValue ( Weekmodel . ISO ) ; return ( ( dow <= 8 - Weekmodel . ISO . getMinimalDaysInFirstWeek ( ) ) ? 2 - dow : 9 - dow ) ;
public class DoublePipeline { /** * Stateful intermediate ops from DoubleStream */ @ Override public final DoubleStream limit ( long maxSize ) { } }
if ( maxSize < 0 ) throw new IllegalArgumentException ( Long . toString ( maxSize ) ) ; return SliceOps . makeDouble ( this , ( long ) 0 , maxSize ) ;
public class DivisiveLocalClusterer { /** * Takes the data set and computes the clustering of a sub cluster , and * stores its information , and places the result in the queue * @ param subDesignation the array of arrays to store the designation array * for the sub clustering * @ param originalCluster the origi...
subDesignation [ originalCluster ] = new int [ listOfDataPointsInCluster . size ( ) ] ; int pos = 0 ; for ( int i = 0 ; i < fullDataSet . size ( ) ; i ++ ) { if ( fullDesignations [ i ] != originalCluster ) continue ; originalPositions [ originalCluster ] [ pos ++ ] = i ; } // Cluster the sub cluster SimpleDataSet dpSu...
public class Config { /** * Allows for modifying properties after creation or loading . * WARNING : This should only be used on initialization and is meant for * command line overrides . Also note that it will reset all static config * variables when called . * @ param property The name of the property to overr...
properties . put ( property , value ) ; loadStaticVariables ( ) ;
public class FixedNodeSetsPartitioning { /** * Set the node partitions * @ param parts disjoint set of nodes * @ return { @ code true } iff the partitions have been set . { @ code false } if the * sets were not disjoint */ public boolean setPartitions ( Collection < Collection < Node > > parts ) { } }
if ( ! isDisjoint ( parts ) ) { return false ; } partitions = parts ; return true ;
public class Logger { /** * A convenience method that uses an argument pattern with Throwable first . * @ param aThrowable A throwable exception * @ param aMessage A message with information about the exception * @ param aVarargs Additional details about the exception being thrown */ public void error ( final Thr...
if ( isErrorEnabled ( ) ) { final MDCCloseable closeable = setLineNumber ( ) ; if ( hasI18nKey ( aMessage ) ) { if ( aThrowable != null ) { myLogger . error ( getI18n ( aMessage , aVarargs ) , aThrowable ) ; } else { myLogger . error ( getI18n ( aMessage , aVarargs ) ) ; } } else { if ( aThrowable != null ) { if ( aVar...
public class KamImpl { /** * { @ inheritDoc } */ @ Override public Set < KamEdge > getEdges ( KamNode sourceNode , KamNode targetNode ) { } }
return getEdges ( sourceNode , targetNode , null ) ;
public class ObjectMapper { /** * Creates a SQL query string to get the primary keys for this * ObjectMapper . */ String buildIdentitySQL ( String [ ] pKeys ) { } }
mTables = new Hashtable ( ) ; mColumns = new Vector ( ) ; // Get columns to select mColumns . addElement ( getPrimaryKey ( ) ) ; // Get tables to select ( and join ) from and their joins tableJoins ( null , false ) ; for ( int i = 0 ; i < pKeys . length ; i ++ ) { tableJoins ( getColumn ( pKeys [ i ] ) , true ) ; } // ...
public class JsonReader { /** * Consumes the next token from the JSON stream and asserts that it is the * beginning of a new array . */ public void beginArray ( ) throws IOException { } }
int p = peeked ; if ( p == PEEKED_NONE ) { p = doPeek ( ) ; } if ( p == PEEKED_BEGIN_ARRAY ) { push ( JsonScope . EMPTY_ARRAY ) ; pathIndices [ stackSize - 1 ] = 0 ; peeked = PEEKED_NONE ; } else { throw new IllegalStateException ( "Expected BEGIN_ARRAY but was " + peek ( ) + locationString ( ) ) ; }
public class JQLBuilder { /** * For each fields . * @ param dao * the dao * @ param listener * the listener */ private static void forEachFields ( SQLiteModelMethod method , OnPropertyListener listener ) { } }
for ( SQLProperty item : method . getEntity ( ) . getCollection ( ) ) { listener . onProperty ( item ) ; }
public class BubbleChart { /** * Add a value * @ param x x * @ param y y * @ param radius radius * @ param label label */ public void addValue ( Integer x , Integer y , Integer radius , String label ) { } }
bubbleData . addValue ( new BubbleItem ( x , y , radius , label ) ) ;
public class VirtualFlow { /** * Creates a viewport that lays out content horizontally from left to right */ public static < T , C extends Cell < T , ? > > VirtualFlow < T , C > createHorizontal ( ObservableList < T > items , Function < ? super T , ? extends C > cellFactory ) { } }
return createHorizontal ( items , cellFactory , Gravity . FRONT ) ;
public class CachedResource { public synchronized boolean update ( ) throws IOException { } }
if ( _resource != null && ! _resource . exists ( ) ) { clear ( ) ; return true ; } long lm = _resource . lastModified ( ) ; if ( lm == _lastModified && ( _buf != null || _list != null ) ) return false ; _lastModified = lm ; if ( _resource . isDirectory ( ) ) _list = _resource . list ( ) ; if ( _list == null ) { int l =...
public class WyilFilePrinter { /** * Write a bracketed operand if necessary . Any operand whose human - readable * representation can contain whitespace must have brackets around it . * @ param operand * @ param enclosing * @ param out */ public void visitBracketedExpression ( Expr expr , Integer indent ) { } }
boolean needsBrackets = needsBrackets ( expr ) ; if ( needsBrackets ) { out . print ( "(" ) ; } visitExpression ( expr , indent ) ; if ( needsBrackets ) { out . print ( ")" ) ; }
public class AbstractDatabaseEngine { /** * Executes the specified prepared statement . * @ param name The prepared statement name . * @ throws DatabaseEngineException If something goes wrong while executing . * @ throws ConnectionResetException If the connection is down and reestablishment occurs . If this happe...
final PreparedStatementCapsule ps = stmts . get ( name ) ; if ( ps == null ) { throw new DatabaseEngineRuntimeException ( String . format ( "PreparedStatement named '%s' does not exist" , name ) ) ; } try { ps . ps . execute ( ) ; } catch ( final SQLException e ) { logger . error ( "Error executing prepared statement" ...
public class FlowPath { /** * This method allows to set position for next rewind within graph * @ param frameName * @ param position */ public void setRewindPosition ( @ NonNull String frameName , int position ) { } }
frames . get ( frameName ) . setRewindPosition ( position ) ;
public class HttpRequest { /** * 对于GET请求将参数加到URL中 < br > * 此处不对URL中的特殊字符做单独编码 */ private void urlWithParamIfGet ( ) { } }
if ( Method . GET . equals ( method ) && false == this . isRest ) { // 优先使用body形式的参数 , 不存在使用form if ( ArrayUtil . isNotEmpty ( this . bodyBytes ) ) { this . url = HttpUtil . urlWithForm ( this . url , StrUtil . str ( this . bodyBytes , this . charset ) , this . charset , false ) ; } else { this . url = HttpUtil . urlWi...
public class WebLocatorAbstractBuilder { /** * < p > < b > Used for finding element process ( to generate xpath address ) < / b > < / p > * @ param baseCls base class * @ param < T > the element which calls this method * @ return this element */ @ SuppressWarnings ( "unchecked" ) public < T extends WebLocatorAbst...
pathBuilder . setBaseCls ( baseCls ) ; return ( T ) this ;
public class RegistriesInner { /** * Creates a new build based on the request parameters and add it to the build queue . * @ param resourceGroupName The name of the resource group to which the container registry belongs . * @ param registryName The name of the container registry . * @ param buildRequest The param...
return queueBuildWithServiceResponseAsync ( resourceGroupName , registryName , buildRequest ) . toBlocking ( ) . last ( ) . body ( ) ;
public class CompressedOutput { /** * Writes objects fields to stream * @ return Compression rate * @ throws IOException */ public float write ( ) throws IOException { } }
bitArray . setAll ( false ) ; for ( int ii = 0 ; ii < bytes ; ii ++ ) { bitArray . set ( ii , bb1 . get ( ii ) != bb2 . get ( ii ) ) ; } if ( ! bitArray . any ( ) ) { return 0 ; } if ( ! bitArray . and ( selfImportantArray ) ) { return 0 ; } if ( writeCount == 0 ) { DataOutputStream dos = new DataOutputStream ( out ) ;...
public class ExampleRestfulServlet { /** * The initialize method is automatically called when the servlet is starting up , so it can * be used to configure the servlet to define resource providers , or set up * configuration , interceptors , etc . */ @ Override protected void initialize ( ) throws ServletException ...
/* * The servlet defines any number of resource providers , and * configures itself to use them by calling * setResourceProviders ( ) */ List < IResourceProvider > resourceProviders = new ArrayList < IResourceProvider > ( ) ; resourceProviders . add ( new RestfulPatientResourceProvider ( ) ) ; resourceProviders . a...
public class SessionFailRetryLoop { /** * Must be called in a finally handler when done with the loop */ @ Override public void close ( ) { } }
Preconditions . checkState ( Thread . currentThread ( ) . equals ( ourThread ) , "Not in the correct thread" ) ; failedSessionThreads . remove ( ourThread ) ; client . removeParentWatcher ( watcher ) ;
public class RuntimeUtil { /** * Runs the specified < code > command < / code > in terminal ( sh in * nix / cmd in windows ) and * returns the command output . * @ param command complete command to be executed * @ param envp array of strings , each element of which * has environment variable settings in the for...
String cmd [ ] ; if ( OS . get ( ) . isUnix ( ) ) cmd = new String [ ] { "sh" , "-c" , command } ; else cmd = new String [ ] { "cmd" , "/C" , command } ; Process p = Runtime . getRuntime ( ) . exec ( cmd , envp , workingDir ) ; ByteArrayOutputStream output = new ByteArrayOutputStream ( ) ; redirectStreams ( p , output ...
public class WebAppTypeImpl { /** * Returns all < code > servlet < / code > elements * @ return list of < code > servlet < / code > */ public List < ServletType < WebAppType < T > > > getAllServlet ( ) { } }
List < ServletType < WebAppType < T > > > list = new ArrayList < ServletType < WebAppType < T > > > ( ) ; List < Node > nodeList = childNode . get ( "servlet" ) ; for ( Node node : nodeList ) { ServletType < WebAppType < T > > type = new ServletTypeImpl < WebAppType < T > > ( this , "servlet" , childNode , node ) ; lis...
public class HTCashbillServiceImp { /** * ( non - Javadoc ) * @ see com . popbill . api . HTCashbillService # getJobState ( java . lang . String , java . lang . String , java . lang . String ) */ @ Override public HTCashbillJobState getJobState ( String CorpNum , String JobID , String UserID ) throws PopbillException...
if ( JobID . length ( ) != 18 ) throw new PopbillException ( - 99999999 , "작업아이디가 올바르지 않습니다." ) ; return httpget ( "/HomeTax/Cashbill/" + JobID + "/State" , CorpNum , UserID , HTCashbillJobState . class ) ;
public class SvgRenderer { /** * Cleans / sanitizes the specified string for inclusion in XML . A bit convoluted , but we ' re * trying to do it without adding an external dependency just for this . . . * @ param s the string to be cleaned / sanitized * @ return the cleaned / sanitized string */ protected String ...
// remove control characters s = s . replaceAll ( "[\u0000-\u001f]" , "" ) ; // escape XML characters try { Document document = DocumentBuilderFactory . newInstance ( ) . newDocumentBuilder ( ) . newDocument ( ) ; Text text = document . createTextNode ( s ) ; Transformer transformer = TransformerFactory . newInstance (...
public class AbstractSingleImageLayer { /** * Fetch the given image from the web . * @ param request The request * @ param transformer The transformer * @ return The image */ protected BufferedImage fetchImage ( @ Nonnull final ClientHttpRequest request , @ Nonnull final MapfishMapContext transformer ) throws IOE...
final String baseMetricName = getClass ( ) . getName ( ) + ".read." + StatsUtils . quotePart ( request . getURI ( ) . getHost ( ) ) ; final Timer . Context timerDownload = this . registry . timer ( baseMetricName ) . time ( ) ; try ( ClientHttpResponse httpResponse = request . execute ( ) ) { if ( httpResponse . getSta...
public class JNRPEServer { /** * Loads the JNRPE configuration from the INI or the XML file . * @ param configurationFilePath * The path to the configuration file * @ return The parsed configuration . * @ throws ConfigurationException */ private static JNRPEConfiguration loadConfiguration ( final String configu...
File confFile = new File ( configurationFilePath ) ; if ( ! confFile . exists ( ) || ! confFile . canRead ( ) ) { throw new ConfigurationException ( "Cannot access config file : " + configurationFilePath ) ; } return JNRPEConfigurationFactory . createConfiguration ( configurationFilePath ) ;
public class SAML2LogoutValidator { /** * Validates the SAML logout request . * @ param logoutRequest the logout request * @ param context the context * @ param engine the signature engine */ protected void validateLogoutRequest ( final LogoutRequest logoutRequest , final SAML2MessageContext context , final Signa...
validateSignatureIfItExists ( logoutRequest . getSignature ( ) , context , engine ) ; // don ' t check because of CAS v5 // validateIssueInstant ( logoutRequest . getIssueInstant ( ) ) ; validateIssuerIfItExists ( logoutRequest . getIssuer ( ) , context ) ; NameID nameId = logoutRequest . getNameID ( ) ; final Encrypte...
public class CollapsiblePanel { /** * Set the trigger button . */ public void setTrigger ( AbstractButton trigger , Icon collapsed , Icon uncollapsed ) { } }
_trigger = trigger ; _trigger . setHorizontalAlignment ( SwingConstants . LEFT ) ; _trigger . setHorizontalTextPosition ( SwingConstants . RIGHT ) ; _downIcon = collapsed ; _upIcon = uncollapsed ; _trigger . addActionListener ( this ) ;
public class SSLReadServiceContext { /** * This method is called when the SSL engine returns from unwrap indicating * that the output buffer was too small . If a buffer was provided by the * calling app channel to read into , it may have been too small . Note , we ' re * only able to use the first buffer in the p...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "expandDecryptedNetBuffer" ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "callerRequiredAlloc=" + callerRequiredAllocation + ", decNetReleaseReq=" + decryptedNetBufferRel...
public class AggregateComplianceCountMarshaller { /** * Marshall the given parameter object . */ public void marshall ( AggregateComplianceCount aggregateComplianceCount , ProtocolMarshaller protocolMarshaller ) { } }
if ( aggregateComplianceCount == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( aggregateComplianceCount . getGroupName ( ) , GROUPNAME_BINDING ) ; protocolMarshaller . marshall ( aggregateComplianceCount . getComplianceSummary ( ) , COMPLI...
public class WritingBenchmark { /** * Benchmarks direct writing via { @ link RandomAccessFile } without using any kind of buffering . * @ param configuration * Configuration with target file * @ throws IOException * Failed to write to target file */ @ Benchmark @ BenchmarkMode ( Mode . AverageTime ) public void...
try ( RandomAccessFile file = new RandomAccessFile ( configuration . file , "rw" ) ) { for ( long i = 0 ; i < LINES ; ++ i ) { file . write ( DATA ) ; } }
public class RemotingDestinationExporterBeanDefinitionFactory { /** * The main parsing algorithm for the < code > remoting - destination < / code > tag . * @ param element the element being parsed * @ param parserContext the current parser context * @ param exportedBeanReference reference to the bean being export...
BeanDefinitionBuilder builder = BeanDefinitionBuilder . genericBeanDefinition ( REMOTING_DESTINATION_EXPORTER_CLASS_NAME ) ; builder . getRawBeanDefinition ( ) . setRole ( BeanDefinition . ROLE_INFRASTRUCTURE ) ; validateRemotingDestination ( element , parserContext ) ; String destinationId = element . getAttribute ( D...
public class GVRMesh { /** * Retrieves a set of texture coordinates from the mesh . * A mesh may have multiple sets of texture coordinates * Each texture coordinate is represented as a packed { @ code float } pair : * < code > { u0 , v0 , u1 , v1 , u2 , v2 , . . . } < / code > * This function retrieves the < i ...
final String key = ( index > 0 ) ? ( KEY_TEXCOORD + index ) : KEY_TEXCOORD ; return mVertices . getFloatArray ( key ) ;
public class DeviceManagerClient { /** * Lists the last few versions of the device state in descending order ( i . e . : newest first ) . * < p > Sample code : * < pre > < code > * try ( DeviceManagerClient deviceManagerClient = DeviceManagerClient . create ( ) ) { * DeviceName name = DeviceName . of ( " [ PROJ...
ListDeviceStatesRequest request = ListDeviceStatesRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . build ( ) ; return listDeviceStates ( request ) ;
public class MultiFuture { /** * Method checks if the subfutures are done . * @ return true if all futures are done , otherwise false . */ @ Override public boolean isDone ( ) { } }
for ( Future < FUTURE_TYPE > future : futureList ) { if ( ! future . isDone ( ) ) { return false ; } } return true ;
public class AbstractArakhneMojo { /** * Replies a list of files which are found on the file system . * @ param directory * is the directory to search in . * @ param filter * is the file selector * @ param fileOut * is the list of files to fill . */ public final synchronized void findFiles ( File directory ...
if ( directory != null && filter != null ) { File candidate ; final List < File > candidates = new ArrayList < > ( ) ; final String relativePath = removePathPrefix ( getBaseDirectory ( ) , directory ) ; getLog ( ) . debug ( "Retreiving " // $ NON - NLS - 1 $ + filter . toString ( ) + " files from " // $ NON - NLS - 1 $...
public class Mappings { /** * ( convert to Integer ) mapping * @ param constraints constraints * @ return new created mapping */ public static Mapping < Integer > intv ( Constraint ... constraints ) { } }
return new FieldMapping ( InputMode . SINGLE , mkSimpleConverter ( s -> isEmptyStr ( s ) ? 0 : Integer . parseInt ( s ) ) , new MappingMeta ( MAPPING_INT , Integer . class ) ) . constraint ( checking ( Integer :: parseInt , "error.number" , true ) ) . constraint ( constraints ) ;
public class ServerImpl { /** * Adds a consumer which will be informed once the server is ready . * If the server is already ready , it will immediately call the consumer , otherwise it will be called from the * websocket reading thread . * @ param consumer The consumer which should be called . */ public void add...
synchronized ( readyConsumers ) { if ( ready ) { consumer . accept ( this ) ; } else { readyConsumers . add ( consumer ) ; } }
public class ZoneOffsetTransitionRule { /** * Creates a transition instance for the specified year . * Calculations are performed using the ISO - 8601 chronology . * @ param year the year to create a transition for , not null * @ return the transition instance , not null */ public ZoneOffsetTransition createTrans...
LocalDate date ; if ( dom < 0 ) { date = LocalDate . of ( year , month , month . length ( IsoChronology . INSTANCE . isLeapYear ( year ) ) + 1 + dom ) ; if ( dow != null ) { date = date . with ( previousOrSame ( dow ) ) ; } } else { date = LocalDate . of ( year , month , dom ) ; if ( dow != null ) { date = date . with ...
public class CapacityFiller { /** * Internal : Schedule * @ param cr The value */ private void internalSchedule ( CapacityRequest cr ) { } }
if ( this . threadStarted . compareAndSet ( false , true ) ) { this . fillerThread . start ( ) ; } // Multiple instances of the same ManagedConnectionPool is allowed synchronized ( crs ) { crs . addLast ( cr ) ; crs . notifyAll ( ) ; }
public class ClassCacheMgr { /** * Retrieve class mapping meta - data by < code > Class < / code > object . * @ param < T > * @ param clazz * @ param throwException * @ return CFMappingDef if found , exception if throwException = true , and null * otherwise */ public < T > CFMappingDef < T > getCfMapDef ( Cla...
@ SuppressWarnings ( "unchecked" ) CFMappingDef < T > cfMapDef = ( CFMappingDef < T > ) cfMapByClazz . get ( clazz ) ; if ( null == cfMapDef && throwException ) { throw new HectorObjectMapperException ( "could not find property definitions for class, " + clazz . getSimpleName ( ) + ", in class cache. This indicates th...
public class OpenCmsCore { /** * Initialization of the OpenCms runtime environment . < p > * The connection information for the database is read * from the < code > opencms . properties < / code > configuration file and all * driver manager are initialized via the initializer , * which usually will be an instan...
m_gwtServiceContexts = new HashMap < String , CmsGwtServiceContext > ( ) ; // automatic servlet container recognition and specific behavior : CmsServletContainerSettings servletContainerSettings = new CmsServletContainerSettings ( context ) ; getSystemInfo ( ) . init ( servletContainerSettings ) ; // Collect the config...