Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2012 EclipseSource and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: Holger Staudacher - initial API and implementation Dragos Dascalita - added properties /
package com.eclipsesource.jaxrs.publisher.internal;
public class RootApplication extends Application {
  
  private final Map<StringObjectproperties;
  private final List<Objectresources;
  public RootApplication() {
     = new LinkedList<Object>();
     = new HashMap<StringObject>();
  }
  
  void addResourceObject resource ) {
    .addresource );
  }
  
  void removeResourceObject resource ) {
    .removeresource );
  }
  
  boolean hasResources() {
    return !.isEmpty();
  }
  public Set<ObjectgetSingletons() {
    Set<Objectsingletons = new HashSet<Object>( super.getSingletons() );
    singletons.addAll );
    return singletons;
  }
  public Map<StringObjectgetProperties() {
    return ;
  }
  public void addPropertyString keyObject value ) {
    .putkeyvalue );
  }
  
New to GrepCode? Check out our FAQ X