Factory
Object Hierarchy:
Description:
public abstract class Factory<
G> :
Object
Object which creates other objects
In order to acquire an instance of the type the factory creates you should use one of the acquire methods (
acquire,
acquire_async, and
acquire_background). The create methods exist to be overridden
in order to properly integrate with subclasses and should not be called directly except from within acquire implementations.
Namespace: Bump
Package: bump-0.1
Content:
Properties:
Creation methods:
Methods:
- protected virtual G create (
int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Create an instance synchronously
- protected virtual async G create_async (
int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Create an instance asynchronously
- protected virtual async G create_background (
int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Create an instance in a background thread
- public abstract weak G acquire (
int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Synchronously acquire an instance
- public abstract async weak G acquire_async (
int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Asynchronously acquire an instance
- public abstract async weak G acquire_background (
int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Asynchronously acquire an instance in a background thread