edu.uiuc.ncsa.myproxy.oa4mp.client.storage
Class AssetProvider

java.lang.Object
  extended by edu.uiuc.ncsa.myproxy.oa4mp.client.storage.AssetProvider
All Implemented Interfaces:
javax.inject.Provider<Asset>

public class AssetProvider
extends Object
implements javax.inject.Provider<Asset>

Provider (i.e. a factory) for creating Assets.

Created by Jeff Gaynor
on 1/29/13 at 3:45 PM


Constructor Summary
AssetProvider()
           
 
Method Summary
 Asset get()
          Creates an new asset with a randomly assigned identifier.
 Asset get(edu.uiuc.ncsa.security.core.Identifier identifier)
           
 Asset get(String identifier)
          Convenience method to return the asset if the identifier is a string rather than an Identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetProvider

public AssetProvider()
Method Detail

get

public Asset get()
Creates an new asset with a randomly assigned identifier.

Specified by:
get in interface javax.inject.Provider<Asset>
Returns:

get

public Asset get(String identifier)
Convenience method to return the asset if the identifier is a string rather than an Identifier.

Parameters:
identifier -
Returns:

get

public Asset get(edu.uiuc.ncsa.security.core.Identifier identifier)


Copyright © 2013. All Rights Reserved.